Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe MemcacheStorage
+ Graphe d'héritage de MemcacheStorage:

Fonctions membres publiques

 __construct ($options=array())
 
 contains ($id, $group)
 
 get ($id, $group, $checkTime=true)
 
 getAll ()
 
 store ($id, $group, $data)
 
 remove ($id, $group)
 
 clean ($group, $mode=null)
 
 flush ()
 
 lock ($id, $group, $locktime)
 
 unlock ($id, $group=null)
 
- Fonctions membres publiques hérités de CacheStorage
 __construct ($options=array())
 
 contains ($id, $group)
 
 get ($id, $group, $checkTime=true)
 
 getAll ()
 
 store ($id, $group, $data)
 
 remove ($id, $group)
 
 clean ($group, $mode=null)
 
 flush ()
 
 gc ()
 
 lock ($id, $group, $locktime)
 
 unlock ($id, $group=null)
 

Fonctions membres publiques statiques

static isSupported ()
 
- Fonctions membres publiques statiques hérités de CacheStorage
static isSupported ()
 
static test ()
 
static addIncludePath ($path='')
 

Fonctions membres protégées

 getConnection ()
 
 _getCacheId ($id, $group)
 
 lockindex ()
 
 unlockindex ()
 
- Fonctions membres protégées hérités de CacheStorage
 _getCacheId ($id, $group)
 

Attributs protégés

 $_compress = 0
 
- Attributs protégés hérités de CacheStorage
 $rawname
 

Attributs protégés statiques

static $_db = null
 

Membres hérités additionnels

- Champs de données hérités de CacheStorage
 $_now
 
 $_lifetime
 
 $_locking
 
 $_language
 
 $_application
 
 $_hash
 

Description détaillée

Memcache cache storage handler

1.7.0 deprecated 729.

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options = array())

Constructor

Paramètres
array$optionsOptional parameters.
Depuis
1.7.0

Références $options, et null.

Documentation des fonctions membres

◆ _getCacheId()

_getCacheId (   $id,
  $group 
)
protected

Get a cache_id string from an id/group pair

Paramètres
string$idThe cache data id
string$groupThe cache data group
Renvoie
string The cache_id string
Depuis
1.7.0

Références $id, $prefix, et Cache\getPlatformPrefix().

◆ clean()

clean (   $group,
  $mode = null 
)

Clean cache for a group given a mode.

group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group

Paramètres
string$groupThe cache data group
string$modeThe mode for cleaning cache [group|notgroup]
Renvoie
boolean
Depuis
1.7.0

Références $key, $mode, $prefix, et $value.

◆ contains()

contains (   $id,
  $group 
)

Check if the cache contains data stored by ID and group

Paramètres
string$idThe cache data ID
string$groupThe cache data group
Renvoie
boolean
Depuis
3.7.0

Références $id.

◆ flush()

flush ( )

Flush all existing items in storage.

Renvoie
boolean
Depuis
3.6.3

◆ get()

get (   $id,
  $group,
  $checkTime = true 
)

Get cached data by ID and group

Paramètres
string$idThe cache data ID
string$groupThe cache data group
boolean$checkTimeTrue to verify cache time expiration threshold
Renvoie
mixed Boolean false on failure or a cached data object
Depuis
1.7.0

Références $id.

◆ getAll()

getAll ( )

Get all cached data

Renvoie
mixed Boolean false on failure or a cached data object
Depuis
1.7.0

Références $data, $item, et $key.

◆ getConnection()

getConnection ( )
protected

Create the Memcache connection

Renvoie
void
Depuis
1.7.0
Exceptions

Références $config, et null.

◆ isSupported()

static isSupported ( )
static

Test to see if the storage handler is available.

Renvoie
boolean
Depuis
3.0.0

◆ lock()

lock (   $id,
  $group,
  $locktime 
)

Lock cached item

Paramètres
string$idThe cache data ID
string$groupThe cache data group
integer$locktimeCached item max lock time
Renvoie
mixed Boolean false if locking failed or an object containing properties lock and locklooped
Depuis
1.7.0

Références $id.

◆ lockindex()

lockindex ( )
protected

Lock cache index

Renvoie
boolean
Depuis
1.7.0

◆ remove()

remove (   $id,
  $group 
)

Remove a cached data entry by ID and group

Paramètres
string$idThe cache data ID
string$groupThe cache data group
Renvoie
boolean
Depuis
1.7.0

Références $id, $key, et $value.

◆ store()

store (   $id,
  $group,
  $data 
)

Store the data to cache by ID and group

Paramètres
string$idThe cache data ID
string$groupThe cache data group
string$dataThe data to store in cache
Renvoie
boolean
Depuis
1.7.0

Références $data, et $id.

◆ unlock()

unlock (   $id,
  $group = null 
)

Unlock cached item

Paramètres
string$idThe cache data ID
string$groupThe cache data group
Renvoie
boolean
Depuis
1.7.0

Références $id.

◆ unlockindex()

unlockindex ( )
protected

Unlock cache index

Renvoie
boolean
Depuis
1.7.0

Documentation des champs

◆ $_compress

$_compress = 0
protected

◆ $_db

$_db = null
staticprotected

La documentation de cette classe a été générée à partir du fichier suivant :