Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating source comments and version numbers.

  • Loading branch information...
commit ab96ff60dbd99a5dc3f6f9ba8fd51d5e120be33e 1 parent 3a2f657
@sbisbee authored
View
2  src/SagCache.php
@@ -27,7 +27,7 @@
* storage).
*
* @package Cache
- * @version 0.2.0
+ * @version 0.3.0
*/
abstract class SagCache
{
View
13 src/SagFileCache.php
@@ -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
{
View
12 src/SagMemoryCache.php
@@ -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
{
Please sign in to comment.
Something went wrong with that request. Please try again.