Skip to content

Commit

Permalink
Merge pull request #30 from jasny/patch-1
Browse files Browse the repository at this point in the history
List the available methods in README
  • Loading branch information
desarrolla2 committed Aug 28, 2016
2 parents 5a9b1b5 + a3547dd commit a6dbf08
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,32 @@ $cache = new Cache($adapter);

```

## Methods

A `Desarrolla2\Cache\Cache` object has the following methods:

##### `delete(string $key)`
Delete a value from the cache

##### `public function get(string $key)`
Retrieve the value corresponding to a provided key

##### `public function has($key)`
Retrieve the if value corresponding to a provided key exist

##### `set(string $key , mixed $value [, int $ttl])`
Add a value to the cache under a unique key

##### `setOption(string $key, string $value)`
Set option for Adapter

##### `clearCache()`
Clean all expired records from cache

##### `dropCache()`
Clear all cache


## Coming soon

This library implements other adapters as soon as possible, feel free to send
Expand Down

0 comments on commit a6dbf08

Please sign in to comment.