Phalcon cache
NOTE
All classes are prefixed with Phalcon
Cache\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. Phalcon\Cache implements PSR-16.
Properties¶
Methods¶
Constructor. 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. Checks the key. If it contains invalid characters an exception is thrown Checks the key. If it contains invalid characters an exception is 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\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\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\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