3 ms·
Typically it means that immutable data is being looked up by hash key. The mapping between the hash key and the data never changes, so the cache is never stale.
by skybrian 7y ago
Typically it means that immutable data is being looked up by hash key. The mapping between the hash key and the data never changes, so the cache is never stale. When there is new data, it's given a different hash key.
Whether or not data is in the cache can change, but if the data is there, the result is always the same.
An example of stateless data would be a video on YouTube or a particular version of a file in git.
- SahAssar 7y agoIf the data cannot change and is not gated by AuthZ/AuthN then it is usually called a public cache. If the data cannot change but is controlled by AuthZ/AuthN then it is pretty clearly not stateless. I get what you mean, but calling a cache "stateless" seems like a contradiction in terms to me.
- joshuamorton 7y agoWell it isn't "public", since its only available if you're on Google's internal production network, and in that sense, nothing on the network is public.