Modules

Kohana_Cache_Tagging

Kohana Cache Tagging Interface

package
Kohana/Cache
category
Base
author
Kohana Team
copyright
© 2009-2010 Kohana Team
license
http://kohanaphp.com/license

Class declared in MODPATH/cache/classes/kohana/cache/tagging.php on line 11.

Constants

  • None

Properties

  • None

Methods

abstract public delete_tag( string $tag ) (defined in Kohana_Cache_Tagging)

Delete cache entries based on a tag

Parameters

  • string $tag required - Tag

Source Code

public function delete_tag($tag);

abstract public find( string $tag ) (defined in Kohana_Cache_Tagging)

Find cache entries based on a tag

Parameters

  • string $tag required - Tag

Return Values

  • array

Source Code

public function find($tag);

abstract public set_with_tags( string $id , mixed $data [, integer $lifetime = NULL , array $tags = NULL ] ) (defined in Kohana_Cache_Tagging)

Set a value based on an id. Optionally add tags.

Note : Some caching engines do not support tagging

Parameters

  • string $id required - Id
  • mixed $data required - Data
  • integer $lifetime = NULL - Lifetime [Optional]
  • array $tags = NULL - Tags [Optional]

Return Values

  • boolean

Source Code

public function set_with_tags($id, $data, $lifetime = NULL, array $tags = NULL);