twpayne/tilecloud — pull request #49 by fredj (2012-10-10 09:40:08+00:00)
Title: Add MemcachedTileStore.

Usage example:
```python
from tilecloud.layout.template import TemplateTileLayout
from tilecloud.store.memcached import MemcachedTileStore

keytemplate = 'mylayername/%(z)d/%(x)d/%(y)d'
memstore = MemcachedTileStore(['localhost:11211'], TemplateTileLayout(keytemplate))

# As a caching proxy:
from tilecloud import TileStore
from tilecloud.store.findfirst import FindFirstTileStore

osmstore = TileStore.load('tiles.openstreetmap_org')
store = FindFirstTileStore([memstore, osmstore])

# fixme: tiles from osmstore not saved into memstore
```
TODO:
- tests
- cache expire
- working caching proxy example