From 58a1938e21afb5772f22658e8d7afa1f240b93b0 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Mon, 4 Nov 2013 00:59:39 -0500 Subject: [PATCH] Fully document supported cache store interface. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 94f1da15..06ff00ba 100644 --- a/README.md +++ b/README.md @@ -470,10 +470,10 @@ It's a good idea, when relying on any external service, to cache retrieved data. This example uses Redis, but the cache store can be any object that supports these methods: -* `store#[](key)` - retrieves a value -* `store#[]=(key, value)` - stores a value -* `store#keys` - lists all keys -* `store#del(url)` - deletes a value +* `store#[](key)` or `#get` or `#read` - retrieves a value +* `store#[]=(key, value)` or `#set` or `#write` - stores a value +* `store#keys` - lists all keys +* `store#del(url)` - deletes a value Even a plain Ruby hash will work, though it's not a great choice (cleared out when app is restarted, not shared between app instances, etc). -- GitLab