Symfony\Component\HttpKernel\Profiler\RedisProfilerStorage
RedisProfilerStorage stores profiling information in Redis.
- Author: Andrej Hudec <pulzarraider@gmail.com>
Synopsis
class RedisProfilerStorage
implements
ProfilerStorageInterface
{
- // constants
- const TOKEN_PREFIX = 'sf_profiler_';
- const REDIS_OPT_SERIALIZER = 1;
- const REDIS_OPT_PREFIX = 2;
- const REDIS_SERIALIZER_NONE = 0;
- const REDIS_SERIALIZER_PHP = 1;
- // methods
- public void __construct()
- public void find()
- public void purge()
- public void read()
- public void write()
- protected Redis getRedis()
- public void setRedis()
- private void createProfileFromData()
- private string getItemName()
- private string getIndexName()
- private void isItemNameValid()
- private mixed getValue()
- private Boolean setValue()
- private Boolean appendValue()
- private Boolean delete()
Hierarchy
Constants
Name | Value |
---|---|
TOKEN_PREFIX | 'sf_profiler_' |
REDIS_OPT_SERIALIZER | 1 |
REDIS_OPT_PREFIX | 2 |
REDIS_SERIALIZER_NONE | 0 |
REDIS_SERIALIZER_PHP | 1 |
Members
Methods
private
- appendValue() — Appends data to an existing item on the Redis server.
- createProfileFromData()
- delete() — Removes the specified keys.
- getIndexName() — Gets the name of the index.
- getItemName() — Gets the item name.
- getValue() — Retrieves an item from the Redis server.
- isItemNameValid()
- setValue() — Stores an item on the Redis server under the specified key.
protected
- getRedis() — Internal convenience method that returns the instance of Redis.
public
- __construct() — Constructor.
- find() — {@inheritdoc}
- purge() — {@inheritdoc}
- read() — {@inheritdoc}
- setRedis() — Set instance of the Redis
- write() — {@inheritdoc}