girder/large_image

This great library considers using redis as a cache backend?

Closed this issue · 3 comments

Is it possible to add redis as an option?some scenarios already use redis, so use redis directly as a cache backend for large-image

Currently we cache tiles either in the main process memory or in memcached. It should be easy to add additional cache backends. Caches can be implements as plugins which expose the large_image.cache in their entry_points and have that as a cachetools.Cache style cache that implements appropriate get and set methods, plus an extra getCache staticmethod which returns a instance of the cache class and an optional lock, if needed.

yep, i fork a branch and implement redis cache backend, should i make PR?

If you like; or it could be a stand-alone package with just the redis cache.