- Phalcon\Storage\Adapter\AbstractAdapter
- Phalcon\Storage\Adapter\AdapterInterface
- Phalcon\Storage\Adapter\Apcu
- Phalcon\Storage\Adapter\Libmemcached
- Phalcon\Storage\Adapter\Memory
- Phalcon\Storage\Adapter\Redis
- Phalcon\Storage\Adapter\Stream
- Phalcon\Storage\AdapterFactory
- Phalcon\Storage\Exception
- Phalcon\Storage\Serializer\AbstractSerializer
- Phalcon\Storage\Serializer\Base64
- Phalcon\Storage\Serializer\Igbinary
- Phalcon\Storage\Serializer\Json
- Phalcon\Storage\Serializer\Msgpack
- Phalcon\Storage\Serializer\None
- Phalcon\Storage\Serializer\Php
- Phalcon\Storage\Serializer\SerializerInterface
- Phalcon\Storage\SerializerFactory
Abstract Class Phalcon\Storage\Adapter\AbstractAdapter
| Namespace | Phalcon\Storage\Adapter | | Uses | DateInterval, DateTime, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | | Implements | AdapterInterface |
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¶
/**
* @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 serializerInterface Phalcon\Storage\Adapter\AdapterInterface
| Namespace | Phalcon\Storage\Adapter | | Uses | Phalcon\Storage\Serializer\SerializerInterface |
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 adapterClass Phalcon\Storage\Adapter\Apcu
| Namespace | Phalcon\Storage\Adapter | | Uses | APCuIterator, Phalcon\Helper\Arr, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | | Extends | AbstractAdapter |
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 adapterClass Phalcon\Storage\Adapter\Libmemcached
| Namespace | Phalcon\Storage\Adapter | | Uses | Phalcon\Helper\Arr, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | | Extends | AbstractAdapter |
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 adapterClass Phalcon\Storage\Adapter\Memory
| Namespace | Phalcon\Storage\Adapter | | Uses | Phalcon\Collection, Phalcon\Collection\CollectionInterface, Phalcon\Helper\Arr, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | | Extends | AbstractAdapter |
Memory 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 adapterClass Phalcon\Storage\Adapter\Redis
| Namespace | Phalcon\Storage\Adapter | | Uses | Phalcon\Helper\Arr, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | | Extends | AbstractAdapter |
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).Class Phalcon\Storage\Adapter\Stream
| Namespace | Phalcon\Storage\Adapter | | Uses | FilesystemIterator, Iterator, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface, RecursiveDirectoryIterator, RecursiveIteratorIterator | | Extends | AbstractAdapter |
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 adapterClass Phalcon\Storage\AdapterFactory
| Namespace | Phalcon\Storage | | Uses | Phalcon\Factory\AbstractFactory, Phalcon\Storage\Adapter\AdapterInterface | | Extends | AbstractFactory |
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 adapterClass Phalcon\Storage\Exception
| Namespace | Phalcon\Storage | | Extends | \Phalcon\Exception |
Phalcon\Storage\Exception
Exceptions thrown in Phalcon\Storage will use this class
Abstract Class Phalcon\Storage\Serializer\AbstractSerializer
| Namespace | Phalcon\Storage\Serializer | | Uses | Phalcon\Storage\Exception | | Implements | SerializerInterface |
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¶
Constructor If this returns true, then the data returns back as isClass Phalcon\Storage\Serializer\Base64
| Namespace | Phalcon\Storage\Serializer | | Uses | InvalidArgumentException | | Extends | AbstractSerializer |
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 dataClass Phalcon\Storage\Serializer\Igbinary
| Namespace | Phalcon\Storage\Serializer | | Extends | AbstractSerializer |
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 dataClass Phalcon\Storage\Serializer\Json
| Namespace | Phalcon\Storage\Serializer | | Uses | InvalidArgumentException, JsonSerializable, Phalcon\Helper\Json | | Extends | AbstractSerializer |
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 dataClass Phalcon\Storage\Serializer\Msgpack
| Namespace | Phalcon\Storage\Serializer | | Extends | AbstractSerializer |
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 dataClass Phalcon\Storage\Serializer\None
| Namespace | Phalcon\Storage\Serializer | | Uses | InvalidArgumentException | | Extends | AbstractSerializer |
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 dataClass Phalcon\Storage\Serializer\Php
| Namespace | Phalcon\Storage\Serializer | | Uses | InvalidArgumentException, Phalcon\Storage\Exception | | Extends | AbstractSerializer |
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 dataInterface Phalcon\Storage\Serializer\SerializerInterface
| Namespace | Phalcon\Storage\Serializer | | Uses | Serializable | | Extends | Serializable |
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¶
Class Phalcon\Storage\SerializerFactory
| Namespace | Phalcon\Storage | | Uses | Phalcon\Factory\AbstractFactory, Phalcon\Storage\Serializer\SerializerInterface | | Extends | AbstractFactory |
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.