Class Support_Resources_DefaultCacheStore

Description

Support_Resources_DefaultCacheStore provides the same public interface

as Cache_Store, but is not actually backed by a cache (i.e. no data is stored/cached). This allows consumers of the class to use the same interface whether or not the system where they are running has any caching set up.

Located in /support/lib/Support/Resources/DefaultCacheProvider.php (line 37)


	
			
Method Summary
 void clear ([mixed $options = null])
 void exists (mixed $key, [mixed $options = null])
 void expire (mixed $key, [mixed $options = null])
 mixed get (mixed $key, [mixed $options = null], [callback $callback = null])
 void set (mixed $key, mixed $data, [mixed $options = null])
Methods
clear (line 102)

Remove all data from the cache.

Like expire, this does not have any actual effect. All parameters are ignored.

  • access: public
void clear ([mixed $options = null])
  • mixed $options: An array of options or a cache profile name
exists (line 78)

Test for the existence of key in the cache.

Always returns false

  • access: public
void exists (mixed $key, [mixed $options = null])
  • mixed $key: The key set the value for
  • mixed $options: An array of options or a cache profile name (ignored)
expire (line 91)

Remove key and its data from the cache.

Like set, this does not have any actual effect. All parameters are ignored.

  • access: public
void expire (mixed $key, [mixed $options = null])
  • mixed $key: The key to remove
  • mixed $options: An array of options or a cache profile name
get (line 51)

Return the value for key.

This implementation always returns null unless a callback is provided. If a callback is provided, it is called and its value returned.

  • access: public
mixed get (mixed $key, [mixed $options = null], [callback $callback = null])
  • mixed $key: The key to obtain the value for
  • mixed $options: An array of options or a cache profile name (ignored)
  • callback $callback: The optional callback
set (line 67)

Store a value for key.

No value is actually stored. All parameters are ignored.

  • access: public
void set (mixed $key, mixed $data, [mixed $options = null])
  • mixed $key: The key set the value for
  • mixed $data: The data to store
  • mixed $options: An array of options or a cache profile name

Documentation generated on Wed, 25 Apr 2012 09:46:42 -0700 by phpDocumentor 1.4.3