/usr/share/pyshared/TileCache/Caches/Test.py is in tilecache 2.11-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from TileCache.Cache import Cache
class Test(Cache):
"""
A Cache class which does not cache anything: useful for
testing during development, or any other setup where
TileCache should not cache data. In general, using this
with metatiles is very slow, and not recommended.
"""
def get(self, tile):
return None
def set(self, tile, data):
return data
def getKey(self, tile):
return "abc"
def attemptLock(self, tile):
return True
def unlock(self, tile):
pass
|