Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • DevNullStorage
  • FileStorage
  • MemcachedStorage
  • MemoryStorage
  • NewMemcachedStorage
  • SQLiteJournal
  • SQLiteStorage

Interfaces

  • IJournal
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class MemcachedStorage

Memcached storage.

Nette\Caching\Storages\MemcachedStorage implements Nette\Caching\IStorage uses Nette\SmartObject
Namespace: Nette\Caching\Storages
Located at Caching/Storages/MemcachedStorage.php
Methods summary
public static boolean
# isAvailable( )

Checks if Memcached extension is available.

Checks if Memcached extension is available.

Returns

boolean
bool
public
# __construct( $host = 'localhost', $port = 11211, $prefix = '', Nette\Caching\Storages\IJournal $journal = null )
public
# addServer( $host = 'localhost', $port = 11211, $timeout = 1 )
public Memcache
# getConnection( )

Returns

Memcache
\Memcache
public mixed
# read( string $key )

Read from cache.

Read from cache.

Parameters

$key

Returns

mixed
mixed

Implementation of

Nette\Caching\IStorage::read()
public
# lock( string $key )

Prevents item reading and writing. Lock is released by write() or remove().

Prevents item reading and writing. Lock is released by write() or remove().

Parameters

$key

Implementation of

Nette\Caching\IStorage::lock()
public
# write( string $key, mixed $data, array $dp )

Writes item into the cache.

Writes item into the cache.

Parameters

$key
$data
$dp

Implementation of

Nette\Caching\IStorage::write()
public
# remove( string $key )

Removes item from the cache.

Removes item from the cache.

Parameters

$key

Implementation of

Nette\Caching\IStorage::remove()
public
# clean( array $conditions )

Removes items from the cache by conditions.

Removes items from the cache by conditions.

Implementation of

Nette\Caching\IStorage::clean()
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string META_CALLBACKS

Internal

cache structure
#'callbacks'
string META_DATA

Internal

cache structure
#'data'
string META_DELTA

Internal

cache structure
#'delta'
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0