Skip to content

Commit

Permalink
readme clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
vodolaz095 committed May 21, 2012
1 parent 7295291 commit 8f516ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ For example

####MEMCACHE::set($string_hash_key,$callback,$expiration_time_in_seconds);
Set the key $string_hash_key with value $callback to be stored for $expiration_time_in_seconds.
Affected by MEMCACHE::setPrefix($prefix) behavior!

For example, store a scalar value
```php
Expand All @@ -39,10 +40,10 @@ MEMCACHE set('counter',function(){ return Realy_Slow_Function($arg1,$arg2);},60)
```

####MEMCACHE::get($string_hash_key);
Get the value from cache. If value doen't exists return false;
Get the value from cache. If value doen't exists return false. Affected by MEMCACHE::setPrefix($prefix) behavior!

####MEMCACHE::delete($string_hash_key);
Delete value in cache.
Delete value in cache. Affected by MEMCACHE::setPrefix($prefix) behavior!

####MEMCACHE::flush();
Invalidates all cache.
Expand Down

0 comments on commit 8f516ad

Please sign in to comment.