diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-18 09:00:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-21 20:47:01 +0100 |
commit | 58e00ebddf017079a6b7d60c066210676661177d (patch) | |
tree | e52489aee9afbaabfd100fa7b91347032dec62a1 /tools/shared.py | |
parent | f199880bb1474e8b2e3a3e4a3e5bf215c8a2b694 (diff) |
basic logic and stubs for caching pre phase
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 1f3b5f20..06cbba68 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1153,6 +1153,22 @@ class Cache: shutil.copyfile(creator(), cachename) return cachename +class JCache: + # Generates a single key from multiple values + @staticmethod + def get_key(keys): + return '' + + # Returns a cached value for a key (from get_key), if it exists + @staticmethod + def get(key): + return None + + # Sets the cached value for a key (from get_key) + @staticmethod + def set(key, value): + pass + # Compression of code and data for smaller downloads class Compression: on = False |