From 775885a82766bc733d7e9bbdd4bf4da7a8376c80 Mon Sep 17 00:00:00 2001 From: misja Date: Tue, 8 Apr 2008 15:24:36 +0000 Subject: Misja Hoebe More doctag fixes git-svn-id: https://code.elgg.org/elgg/trunk@422 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'engine/lib/cache.php') diff --git a/engine/lib/cache.php b/engine/lib/cache.php index 469042108..9e5a0b1cc 100644 --- a/engine/lib/cache.php +++ b/engine/lib/cache.php @@ -12,9 +12,12 @@ */ /** - * @class ElggCache The elgg cache superclass. + * ElggCache The elgg cache superclass. * This defines the interface for a cache (wherever that cache is stored). + * * @author Marcus Povey + * @package Elgg + * @subpackage API */ abstract class ElggCache { @@ -73,9 +76,12 @@ } /** - * @class ElggFileCache + * ElggFileCache * Store cached data in a file store. + * * @author Marcus Povey + * @package Elgg + * @subpackage API */ class ElggFileCache extends ElggCache { @@ -134,6 +140,13 @@ return $filename; } + /** + * Save a key + * + * @param string $key + * @param string $data + * @return boolean + */ public function save($key, $data) { $f = $this->create_file($this->sanitise_filename($key), "wb"); @@ -148,6 +161,14 @@ return false; } + /** + * Load a key + * + * @param string $key + * @param int $offset + * @param int $limit + * @return string + */ public function load($key, $offset = 0, $limit = null) { $f = $this->create_file($this->sanitise_filename($key)); -- cgit v1.2.3