Source code for TileCache.Caches.Test
from TileCache.Cache import Cache
[docs]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.
"""
[docs] def get(self, tile):
return None
[docs] def set(self, tile, data):
return data
[docs] def getKey(self, tile):
return "abc"
[docs] def attemptLock(self, tile):
return True
[docs] def unlock(self, tile):
pass