> every time I need to do something slightly weird, there's a sensible and well thought out way to achieve it.
In my world cache systems like memcached and redis are just that, a cache to put and get from. Possibly use some invalidation system like tagging.
What can you do with a cache system that is 'wierd'? What are people doing with caches other than just caching data?
Genuinely interested.
We had Rails writing to memcached, and nginx pulling from memcached for full page caching.
At some point someone decided to gzip all writes into memcached, and our site looked really fun for a while.
I’ve done moving window rate limiting using redis to do atomic rate calculations etc.
That requires some weirdness
No, you're right. Nothing crazy. But things like counting API usage across threads with INCRBY, or debounced HTML cache clears, or even an actual light db with persistence (AOF), and everything just working.