Long story short: I have some controller logic that requests a value from the cache X times, expecting to get a different value on subsequent requests if it has in fact changed on the cache server in between cache requests (this is all within the context of a single HTTP request).
However it seems that Rails MemCacheStore
wraps itself with Strategy::LocalCache
so no matter how many times I request the value it will always return the first value it pulled from the server regardless if that value has changed on the server in between requests.
I was hoping there was some undocumented :force
option for the read()
method, but no such luck.
So my next hope was to monkey-patch it somehow to get what I needed but I'm stumped there.
Any advice?