Permalink
Browse files

Amended the documentation to correctly demonstrate the the lifetime p…

…arameter
  • Loading branch information...
1 parent 3c53121 commit c2406183b06b9586a9adbc1bec84dd5a2df2e662 Sam de Freyssinet committed Nov 9, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -46,7 +46,7 @@ The following is a quick example of how to use Kohana Cache. The example is usin
$data = array('foo' => 'bar', 'apples' => 'pear', 'BDFL' => 'Shadowhand');
// Save the data to cache, with an id of test_id and a lifetime of 10 minutes
- $mycache->set('test_id', $data, time()+600);
+ $mycache->set('test_id', $data, 600);
// Retrieve the data from cache
$retrieved_data = $mycache->get('test_id');

0 comments on commit c240618

Please sign in to comment.