Browse files

Merge pull request #6 from tedivm/cache_stacks

Updated the Stackable keys to have them start with a root slash.
  • Loading branch information...
2 parents ccc0d8c + 1f80b40 commit 1581579f1358fae2f1e94ae6f35d1b2dc9af72a3 @tedivm tedivm committed May 31, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 proposed/PSR-Cache.md
View
10 proposed/PSR-Cache.md
@@ -255,12 +255,12 @@ any differently.
Stacks are a special kind of grouping system that allow cache items to be
nested, similar to how folders are nested in filesystems. Stacks work by adding
a special character to Keys, the slash, which tells the Implementing Library
-where the nesting points are. If no nesting is used, Stacks behave exactly like
-the standard Cache interfaces.
+where the nesting points are. If the first charactor of the key is not a slash,
+Stacks behaves exactly like the standard Cache interfaces.
-> An example key may look like "Users/Bob/Friends", "Users/Bob/Friends/Active"
-or just "Users/Bob". The special thing about Stacks is that clearing out
-"Users/Bob" also clears out "Users/Bob/Friends" and "Users/Bob/Friends/Active".
+> An example key may look like "/Users/Bob/Friends", "/Users/Bob/Friends/Active"
+or just "/Users/Bob". The special thing about Stacks is that clearing out
+"/Users/Bob" also clears out "/Users/Bob/Friends" and "/Users/Bob/Friends/Active".
#### StackablePool

0 comments on commit 1581579

Please sign in to comment.