class Rack::Cache::EntityStore
Entity stores are used to cache response bodies across requests. All Implementations are required to calculate a SHA checksum of the data written which becomes the response body’s key.
Constants
- DISK
-
Stores entity bodies on disk at the specified path.
- FILE
-
Stores entity bodies on disk at the specified path.
- GAE
- GAECACHE
- HEAP
-
Stores entity bodies on the heap using a Hash object.
- MEM
-
Stores entity bodies on the heap using a Hash object.
- MEMCACHE
-
Uses the
Dalliruby library. This is the default unless the memcached library has already been required. - MEMCACHED
-
Uses the
Dalliruby library. This is the default unless the memcached library has already been required. - NOOP
-
NoopEntity Store backend.Set ‘entitystore` to ’noop:/‘. Does not persist response bodies (no disk/memory used). Responses from the cache will have an empty body. Clients must ignore these empty cached response (check for x-rack-cache response header). Atm cannot handle streamed responses, patch needed.