What are some of the most interesting ways to use memcached?

After introducing the caching layer memcachedinto my schema tools, I wonder if there are more options to use memcachedservices other than canonical:

rec = cache.get(make_cache_key(k))
if rec: return rec
rec = dbi.execute(query_string(k))
cache.set(make_cache_key(k), rec)
return rec

using string caching?

Something like caching structured JSON / XML data? Graphic data? Images?

+3
source share
1 answer

At this point, redis begins to look much more useful!

http://www.redis.io/

0
source

Source: https://habr.com/ru/post/1705870/


All Articles