Scrapbook
Table of Contents
Interfaces
- KeyValueStore
- Interface for key-value storage engines.
- CacheException
- Exception interface for all exceptions thrown by an Implementing Library.
- CacheItemInterface
- CacheItemInterface defines an interface for interacting with objects inside a cache.
- CacheItemPoolInterface
- \Psr\Cache\CacheItemPoolInterface generates Cache\CacheItem objects.
- InvalidArgumentException
- Exception interface for invalid cache arguments.
- CacheException
- Exception interface for all exceptions thrown by an Implementing Library.
- CacheItemInterface
- CacheItemInterface defines an interface for interacting with objects inside a cache.
- CacheItemPoolInterface
- CacheItemPoolInterface generates CacheItemInterface objects.
- InvalidArgumentException
- Exception interface for invalid cache arguments.
Classes
- Apc
- APC adapter. Basically just a wrapper over apc_* functions, but in an
exchangeable (KeyValueStore) interface.
- Couchbase
- Couchbase adapter. Basically just a wrapper over \CouchbaseBucket, but in an
exchangeable (KeyValueStore) interface.
- Filesystem
- Filesystem adapter. Data will be written to filesystem, in separate files.
- Flysystem
- Flysystem adapter. Data will be written to League\Flysystem\Filesystem.
- Memcached
- Memcached adapter. Basically just a wrapper over \Memcached, but in an
exchangeable (KeyValueStore) interface.
- MemoryStore
- No-storage cache: all values will be "cached" in memory, in a simple PHP
array. Values will only be valid for 1 request: whatever is in memory at the
end of the request just dies. Other requests will start from a blank slate.
- MySQL
- MySQL adapter. Basically just a wrapper over \PDO, but in an exchangeable
(KeyValueStore) interface.
- PostgreSQL
- PostgreSQL adapter. Basically just a wrapper over \PDO, but in an
exchangeable (KeyValueStore) interface.
- Redis
- Redis adapter. Basically just a wrapper over \Redis, but in an exchangeable
(KeyValueStore) interface.
- SQL
- SQL adapter. Basically just a wrapper over \PDO, but in an exchangeable
(KeyValueStore) interface.
- SQLite
- SQLite adapter. Basically just a wrapper over \PDO, but in an exchangeable
(KeyValueStore) interface.
- BufferedStore
- This class will serve as a local buffer to the real cache: anything read from
& written to the real cache will be stored in memory, so if any of those keys
is again requested in the same request, we can just grab it from memory
instead of having to get it over the wire.
- TransactionalStore
- In addition to buffering cache data in memory (see BufferedStore), this class
will add transactional capabilities. Writes can be deferred by starting a
transaction & all of them will only go out when you commit them.
- Buffer
- This is a helper class for BufferedStore & TransactionalStore, which buffer
real cache requests in memory.
- Defer
- This is a helper class for transactions. It will optimize the write going
out and take care of rolling back.
- Transaction
- This is a helper class for BufferedStore & TransactionalStore, which buffer
real cache requests in memory.
- Exception
- ServerUnhealthy
- UnbegunTransaction
- UncommittedTransaction
- InfinityDateTime
- Stub class to represent infinity, while still keeping with the PSR-6
requirement of representing TTL with DateTime objects (with which it's not
possible to represent an infinite time, for permanent keys).
- InvalidArgumentException
- Item
- Representation of a cache item, both existing & non-existing (to be created).
- Pool
- Representation of the cache storage, which lets you read items from, and add
values to the cache.
- Repository
- Helper object to serve as glue between pool & item.