[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/ctools/includes/ -> object-cache.inc (summary)

(no description)

File Size: 164 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  ctools_object_cache_get()
  ctools_object_cache_set()
  ctools_object_cache_clear()
  ctools_object_cache_test()
  ctools_object_cache_test_objects()
  ctools_object_cache_clear_all()
  ctools_object_cache_clean()

Functions
Functions that are not part of a class:

ctools_object_cache_get($obj, $name, $skip_cache = FALSE)   X-Ref
Get an object from the non-volatile ctools cache.

This function caches in memory as well, so that multiple calls to this
will not result in multiple database reads.

param: $obj
param: $name
param: $skip_cache
return:

ctools_object_cache_set($obj, $name, $cache)   X-Ref
Store an object in the non-volatile ctools cache.

param: $obj
param: $name
param: $cache

ctools_object_cache_clear($obj, $name)   X-Ref
Remove an object from the non-volatile ctools cache

param: $obj
param: $name

ctools_object_cache_test($obj, $name)   X-Ref
Determine if another user has a given object cached.

This is very useful for 'locking' objects so that only one user can
modify them.

param: $obj
param: $name
return:

ctools_object_cache_test_objects($obj, $names)   X-Ref
Get the cache status of a group of objects.

This is useful for displaying lock status when listing a number of objects
an an administration UI.

param: $obj
param: $names
return:

ctools_object_cache_clear_all($obj, $name)   X-Ref
Remove an object from the non-volatile ctools cache for all session IDs.

This is useful for clearing a lock.

param: $obj
param: $name

ctools_object_cache_clean($age = NULL)   X-Ref
Remove all objects in the object cache that are older than the
specified age.

param: $age



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7