[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

/phpbb/cache/driver/ -> redis.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 162 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

redis:: (6 methods):
  __construct()
  unload()
  purge()
  _read()
  _write()
  _delete()


Class: redis  - X-Ref

ACM for Redis

Compatible with the php extension phpredis available
at https://github.com/nicolasff/phpredis

__construct()   X-Ref
Creates a redis cache driver.

The following global constants affect operation:

PHPBB_ACM_REDIS_HOST
PHPBB_ACM_REDIS_PORT
PHPBB_ACM_REDIS_PASSWORD
PHPBB_ACM_REDIS_DB

There are no publicly documented constructor parameters.

unload()   X-Ref
{@inheritDoc}


purge()   X-Ref
{@inheritDoc}


_read($var)   X-Ref
Fetch an item from the cache

param: string $var Cache key
return: mixed Cached data

_write($var, $data, $ttl = 2592000)   X-Ref
Store data in the cache

param: string $var Cache key
param: mixed $data Data to store
param: int $ttl Time-to-live of cached data
return: bool True if the operation succeeded

_delete($var)   X-Ref
Remove an item from the cache

param: string $var Cache key
return: bool True if the operation succeeded



Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1