From 773564eddb4df453be3790d9619c32b6c17ef9ac Mon Sep 17 00:00:00 2001 From: Ikhsan Agustian Date: Tue, 17 Feb 2015 01:01:59 +0700 Subject: [PATCH] fix typo how come we get fruit as apples on second request, when we set fruit as apple on the first request, is the apple incremented on each request? :D --- index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.rst b/index.rst index 71b43ec..aec8440 100644 --- a/index.rst +++ b/index.rst @@ -73,7 +73,7 @@ Stash functions as a key-value store: you place things into the cache using a ke $item->set('apple'); var_dump($item->get()); - // string(6) "apples" + // string(5) "apple" This works between requests as well. @@ -87,7 +87,7 @@ This works between requests as well. // Second Request $item = $pool->getItem('fruit'); var_dump($item->get()); - // string(6) "apples" + // string(5) "apple" Putting this together with the rest of Stash allows for a simple yet flexible way to speed up scripts by reusing data.