Author: ts Date: Mon Nov 26 16:58:52 2007 New Revision: 6812 Log: - Fixed issue #011888: small fixes to javadocs in memory_backend.php. # Including attached comment.
Modified: trunk/Cache/src/backends/memory_backend.php trunk/Cache/src/storage/file.php trunk/Cache/src/storage/file/plain.php Modified: trunk/Cache/src/backends/memory_backend.php ============================================================================== --- trunk/Cache/src/backends/memory_backend.php [iso-8859-1] (original) +++ trunk/Cache/src/backends/memory_backend.php [iso-8859-1] Mon Nov 26 16:58:52 2007 @@ -34,7 +34,7 @@ /** * Fetches the data associated with key $key. * - * @param mixed $key + * @param string $key * @return mixed */ abstract public function fetch( $key ); Modified: trunk/Cache/src/storage/file.php ============================================================================== --- trunk/Cache/src/storage/file.php [iso-8859-1] (original) +++ trunk/Cache/src/storage/file.php [iso-8859-1] Mon Nov 26 16:58:52 2007 @@ -191,6 +191,10 @@ * them. BEWARE: Finding cache data only by ID can be much * slower than finding it by ID and attributes. * + * Note that with the [EMAIL PROTECTED] ezcCacheStorageFilePlain} all restored data + * will be of type string. If you expect a different data type you need to + * perform a cast after restoring. + * * @param string $id The item ID to restore. * @param array(string=>string) $attributes Attributes describing the * data to restore. Modified: trunk/Cache/src/storage/file/plain.php ============================================================================== --- trunk/Cache/src/storage/file/plain.php [iso-8859-1] (original) +++ trunk/Cache/src/storage/file/plain.php [iso-8859-1] Mon Nov 26 16:58:52 2007 @@ -48,7 +48,7 @@ * include (or false on failure). * * @param string $filename The file to fetch data from. - * @return mixed The fetched data or false on failure. + * @return string The fetched data or false on failure. */ protected function fetchData( $filename ) { -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components