Overview

Namespaces

  • Budovy
  • Kdyby
    • BootstrapFormRenderer
      • DI
      • Latte
  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • Nextras
    • Datagrid
  • None
  • PHP
  • Tester
    • CodeCoverage
    • Runner
      • Output
  • Vodacek
    • Forms
      • Controls
  • WebLoader
    • Filter
    • Nette

Classes

  • DevNullStorage
  • FileJournal
  • FileStorage
  • MemcachedStorage
  • MemoryStorage
  • PhpFileStorage
  • SQLiteStorage

Interfaces

  • IJournal
  • Overview
  • Namespace
  • Class
  • Tree

Class MemcachedStorage

Memcached storage.

Nette\Object
Extended by Nette\Caching\Storages\MemcachedStorage implements Nette\Caching\IStorage
Namespace: Nette\Caching\Storages
Author: David Grudl
Located at vendor/nette/nette/Nette/Caching/Storages/MemcachedStorage.php
Methods summary
public static boolean
# isAvailable( )

Checks if Memcached extension is available.

Checks if Memcached extension is available.

Returns

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

Returns

Memcache
public mixed|null
# read( string $key )

Read from cache.

Read from cache.

Parameters

$key
string
key

Returns

mixed|null

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
string
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
string
key
$data
mixed
data
$dp
array
dependencies

Implementation of

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

Removes item from the cache.

Removes item from the cache.

Parameters

$key
string
key

Implementation of

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

Removes items from the cache by conditions & garbage collector.

Removes items from the cache by conditions & garbage collector.

Parameters

$conditions
array
conditions

Implementation of

Nette\Caching\IStorage::clean()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string META_CALLBACKS 'callbacks'
#
string META_DATA 'data'
#
string META_DELTA 'delta'
#
Magic properties inherited from Nette\Object
$reflection
API documentation generated by ApiGen 2.8.0