Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Updating source comments and version numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbisbee committed Jan 3, 2011
1 parent 3a2f657 commit ab96ff6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/SagCache.php
Expand Up @@ -27,7 +27,7 @@
* storage).
*
* @package Cache
* @version 0.2.0
* @version 0.3.0
*/
abstract class SagCache
{
Expand Down
13 changes: 8 additions & 5 deletions src/SagFileCache.php
Expand Up @@ -18,15 +18,18 @@
require_once('SagCache.php');
require_once('SagException.php');

/*
* Cache to the local hard disk. Uses the system's default temp directory by
* default, but you can specify another location.
/**
* Cache to the local hard disk. Uses /tmp by default, but you can specify
* another location.
*
* Cache keys are used for file names, and the contents are JSON. System file
* Cache keys are used for file names and the contents are JSON. System file
* sizes are used to calculate the cache's current size.
*
* Every operation goes to the disk, so this cache will not be ideal for high
* I/O operations.
*
* @package Cache
* @version 0.2.0
* @version 0.3.0
*/
class SagFileCache extends SagCache
{
Expand Down
12 changes: 6 additions & 6 deletions src/SagMemoryCache.php
Expand Up @@ -18,15 +18,15 @@
require_once('SagCache.php');
require_once('SagException.php');

/*
* Cache to the local hard disk. Uses the system's default temp directory by
* default, but you can specify another location.
/**
* Stores cached items in PHP's memory as serialized JSON, which was
* benchmarked as being faster than serliaze() and clone.
*
* Cache keys are used for file names, and the contents are JSON. System file
* sizes are used to calculate the cache's current size.
* Memory sizes will not be exact because of how PHP allocates and cleans
* memory.
*
* @package Cache
* @version 0.2.0
* @version 0.3.0
*/
class SagMemoryCache extends SagCache
{
Expand Down

0 comments on commit ab96ff6

Please sign in to comment.