Phalcon storage
NOTE
All classes are prefixed with Phalcon
Storage\Adapter\AbstractAdapter ¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
DateInterval
DateTime
Exception
Phalcon\Storage\SerializerFactory
Phalcon\Storage\Serializer\SerializerInterface
Phalcon\Exception
-
Extends
-
Implements
AdapterInterface
Properties¶
/**
* @var mixed
*/
protected $adapter;
/**
* Name of the default serializer class
*
* @var string
*/
protected $defaultSerializer = 'Php';
/**
* Name of the default TTL (time to live)
*
* @var int
*/
protected $lifetime = 3600;
/**
* @var string
*/
protected $prefix = '';
/**
* Serializer
*
* @var SerializerInterface
*/
protected $serializer;
/**
* Serializer Factory
*
* @var SerializerFactory
*/
protected $serializerFactory;
Methods¶
Sets parameters based on options Flushes/clears the cache Decrements a stored number Deletes data from the adapter Reads data from the adapter Returns the adapter - connects to the storage if not connected Returns all the keys stored Checks if an element exists in the cache Increments a stored number Stores data in the adapter Filters the keys array based on global and passed prefix Returns the key requested, prefixed Returns serialized data Calculates the TTL for a cache item Returns unserialized data Initializes the serializerStorage\Adapter\AdapterInterface ¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
Phalcon\Storage\Serializer\SerializerInterface
-
Extends
-
Implements
Interface for Phalcon\Logger adapters
Methods¶
Flushes/clears the cache Decrements a stored number Deletes data from the adapter Reads data from the adapter Returns the already connected adapter or connects to the backend server(s) Returns all the keys stored Returns the prefix for the keys Checks if an element exists in the cache Increments a stored number Stores data in the adapterStorage\Adapter\Apcu¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
APCUIterator
DateInterval
Exception
Phalcon\Storage\SerializerFactory
Phalcon\Exception
-
Extends
AbstractAdapter
-
Implements
Apcu adapter
Properties¶
Methods¶
Constructor Flushes/clears the cache Decrements a stored number Reads data from the adapter Reads data from the adapter Always returns null Stores data in the adapter Checks if an element exists in the cache Increments a stored number Stores data in the adapterStorage\Adapter\Libmemcached¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
DateInterval
Exception
Phalcon\Storage\Exception
Phalcon\Storage\SerializerFactory
Phalcon\Exception
-
Extends
AbstractAdapter
-
Implements
Libmemcached adapter
Properties¶
Methods¶
Libmemcached constructor. Flushes/clears the cache Decrements a stored number Reads data from the adapter Reads data from the adapter Returns the already connected adapter or connects to the Memcached server(s) Stores data in the adapter Checks if an element exists in the cache Increments a stored number Stores data in the adapterStorage\Adapter\Memory¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
DateInterval
Exception
Phalcon\Storage\SerializerFactory
Phalcon\Exception
-
Extends
AbstractAdapter
-
Implements
Memory adapter
Properties¶
/**
* @var Collection|CollectionInterface
*/
protected $data;
/**
* @var array
*/
protected $options;
Methods¶
Constructor Flushes/clears the cache Decrements a stored number Reads data from the adapter Reads data from the adapter Always returns null Stores data in the adapter Checks if an element exists in the cache Increments a stored number Stores data in the adapterStorage\Adapter\Redis¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
DateInterval
Exception
Phalcon\Storage\Exception
Phalcon\Storage\SerializerFactory
Phalcon\Exception
-
Extends
AbstractAdapter
-
Implements
Redis adapter
Properties¶
Methods¶
Constructor Flushes/clears the cache Decrements a stored number Deletes data from the adapter Reads data from the adapter Returns the already connected adapter or connects to the Redis server(s) Gets the keys from the adapter. Accepts an optional prefix which will filter the keys returned Checks if an element exists in the cache Increments a stored number Stores data in the adapter. If no ttl is given, the default value will be used (3600s at the moment).Storage\Adapter\Stream¶
-
Namespace
Phalcon\Storage\Adapter
-
Uses
DateInterval
FilesystemIterator
Iterator
Phalcon\Storage\Exception
Phalcon\Storage\SerializerFactory
Phalcon\Storage\Traits\StorageErrorHandlerTrait
Phalcon\Exception
RecursiveDirectoryIterator
RecursiveIteratorIterator
-
Extends
AbstractAdapter
-
Implements
Stream adapter
Properties¶
Methods¶
Stream constructor. Flushes/clears the cache Decrements a stored number Reads data from the adapter Reads data from the adapter Always returns null Stores data in the adapter Checks if an element exists in the cache and is not expired Increments a stored number Stores data in the adapterStorage\AdapterFactory¶
-
Namespace
Phalcon\Storage
-
Uses
Phalcon\Factory\AbstractFactory
Phalcon\Storage\Adapter\AdapterInterface
-
Extends
AbstractFactory
-
Implements
This file is part of the Phalcon Framework.
(c) Phalcon Team team@phalcon.io
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
Properties¶
Methods¶
AdapterFactory constructor. Create a new instance of the adapterStorage\Exception¶
-
Namespace
Phalcon\Storage
-
Uses
-
Extends
\Exception
-
Implements
Phalcon\Storage\Exception
Exceptions thrown in Phalcon\Storage will use this class
Storage\Serializer\AbstractSerializer ¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
-
Extends
-
Implements
SerializerInterface
@property mixed $data @property bool $isSuccess
Properties¶
Methods¶
Constructor If this returns true, then the data returns back as isStorage\Serializer\Base64¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
InvalidArgumentException
-
Extends
AbstractSerializer
-
Implements
Methods¶
Serializes data Unserializes dataStorage\Serializer\Igbinary¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
-
Extends
AbstractSerializer
-
Implements
Methods¶
Serializes data Unserializes dataStorage\Serializer\Json¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
InvalidArgumentException
JsonSerializable
Phalcon\Helper\Json\Decode
Phalcon\Helper\Json\Encode
-
Extends
AbstractSerializer
-
Implements
Methods¶
Serializes data Unserializes dataStorage\Serializer\Msgpack¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
-
Extends
Igbinary
-
Implements
Methods¶
Serializes data Unserializes dataStorage\Serializer\None¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
-
Extends
AbstractSerializer
-
Implements
Methods¶
Serializes data Unserializes dataStorage\Serializer\Php¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
InvalidArgumentException
-
Extends
AbstractSerializer
-
Implements
This file is part of the Phalcon Framework.
(c) Phalcon Team team@phalcon.io
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
Methods¶
Serializes data Unserializes dataStorage\Serializer\SerializerInterface ¶
-
Namespace
Phalcon\Storage\Serializer
-
Uses
Serializable
-
Extends
Serializable
-
Implements
This file is part of the Phalcon Framework.
(c) Phalcon Team team@phalcon.io
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
Methods¶
Storage\SerializerFactory¶
-
Namespace
Phalcon\Storage
-
Uses
Phalcon\Factory\AbstractFactory
Phalcon\Storage\Serializer\SerializerInterface
-
Extends
AbstractFactory
-
Implements
This file is part of the Phalcon Framework.
(c) Phalcon Team team@phalcon.io
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.