Phalcon cache
NOTE
All classes are prefixed with Phalcon
Cache\AbstractCache ¶
-
Namespace
Phalcon\Cache
-
Uses
DateInterval
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Cache\Exception\InvalidArgumentException
Traversable
-
Extends
-
Implements
CacheInterface
This component offers caching capabilities for your application.
Properties¶
Methods¶
Constructor. Returns the current adapter Checks the key. If it contains invalid characters an exception is thrown Checks the key. If it contains invalid characters an exception is thrown Wipes clean the entire cache's keys. Delete an item from the cache by its unique key. Deletes multiple cache items in a single operation. Fetches a value from the cache. Obtains multiple cache items by their unique keys. Determines whether an item is present in the cache. Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. Persists a set of key => value pairs in the cache, with an optional TTL. Returns the exception class that will be used for exceptions thrownCache\Adapter\AdapterInterface ¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Storage\Adapter\AdapterInterface
-
Extends
StorageAdapterInterface
-
Implements
Interface for Phalcon\Cache adapters
Cache\Adapter\Apcu¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Storage\Adapter\Apcu
-
Extends
StorageApcu
-
Implements
CacheAdapterInterface
Apcu adapter
Cache\Adapter\Libmemcached¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Storage\Adapter\Libmemcached
-
Extends
StorageLibmemcached
-
Implements
CacheAdapterInterface
Libmemcached adapter
Cache\Adapter\Memory¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Storage\Adapter\Memory
-
Extends
StorageMemory
-
Implements
CacheAdapterInterface
Memory adapter
Cache\Adapter\Redis¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Storage\Adapter\Redis
-
Extends
StorageRedis
-
Implements
CacheAdapterInterface
Redis adapter
Cache\Adapter\Stream¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Storage\Adapter\Stream
-
Extends
StorageStream
-
Implements
CacheAdapterInterface
Stream adapter
Cache\Adapter\Weak¶
-
Namespace
Phalcon\Cache\Adapter
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Storage\Adapter\Weak
-
Extends
StorageWeak
-
Implements
CacheAdapterInterface
-
WeakCache implementation based on WeakReference */
Cache\AdapterFactory¶
-
Namespace
Phalcon\Cache
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Cache\Exception\Exception
Phalcon\Factory\AbstractFactory
Phalcon\Storage\SerializerFactory
-
Extends
AbstractFactory
-
Implements
Factory to create Cache adapters
Properties¶
Methods¶
AdapterFactory constructor. Create a new instance of the adapter Returns the available adaptersCache\Cache¶
-
Namespace
Phalcon\Cache
-
Uses
DateInterval
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Cache\Exception\InvalidArgumentException
-
Extends
AbstractCache
-
Implements
This component offers caching capabilities for your application.
Methods¶
Wipes clean the entire cache's keys. Delete an item from the cache by its unique key. Deletes multiple cache items in a single operation. Fetches a value from the cache. Obtains multiple cache items by their unique keys. Determines whether an item is present in the cache. Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. Persists a set of key => value pairs in the cache, with an optional TTL. Returns the exception class that will be used for exceptions thrownCache\CacheFactory¶
-
Namespace
Phalcon\Cache
-
Uses
Phalcon\Cache\Adapter\AdapterInterface
Phalcon\Cache\Cache
Phalcon\Cache\Exception\Exception
Phalcon\Config\ConfigInterface
Phalcon\Factory\AbstractConfigFactory
-
Extends
AbstractConfigFactory
-
Implements
Creates a new Cache class
Properties¶
Methods¶
Constructor Factory to create an instance from a Config object Constructs a new Cache instance.Cache\CacheInterface ¶
-
Namespace
Phalcon\Cache
-
Uses
DateInterval
Phalcon\Cache\Exception\InvalidArgumentException
-
Extends
-
Implements
Interface for Phalcon\Cache\Cache
Methods¶
Wipes clean the entire cache's keys. Delete an item from the cache by its unique key. Deletes multiple cache items in a single operation. Fetches a value from the cache. Obtains multiple cache items by their unique keys. Determines whether an item is present in the cache. Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. Persists a set of key => value pairs in the cache, with an optional TTL.Cache\Exception\Exception¶
-
Namespace
Phalcon\Cache\Exception
-
Uses
-
Extends
\Exception
-
Implements
Exceptions thrown in Phalcon\Cache will use this class
Cache\Exception\InvalidArgumentException¶
-
Namespace
Phalcon\Cache\Exception
-
Uses
-
Extends
\Exception
-
Implements
Exceptions thrown in Phalcon\Cache will use this class