summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-28 09:18:39 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-28 09:18:39 +0200
commit22a2333a63dc7703c93342ef9824b7d22e716316 (patch)
tree0df06881ef313997bfdc4dd07edc374862c1c641 /README
parentPOD fix (diff)
downloadplack-middleware-throttle-22a2333a63dc7703c93342ef9824b7d22e716316.tar.gz
Checking in changes prior to tagging of version 0.01. Changelog diff is:master
Diffstat (limited to '')
-rw-r--r--README5
1 files changed, 4 insertions, 1 deletions
diff --git a/README b/README
index 9da20a3..60e63f5 100644
--- a/README
+++ b/README
@@ -7,7 +7,7 @@ SYNOPSIS
enable "Throttle::Hourly",
max => 2,
backend => Plack::Middleware::Throttle::Backend::Hash->new(),
- path => qr{^/foo};
+ path => qr{^/api};
sub { [ '200', [ 'Content-Type' => 'text/html' ], ['hello world'] ] };
};
@@ -50,6 +50,9 @@ OPTIONS
The cache object must implement get, set and incr methods. By
default, you can use "Plack::Middleware::Throttle::Backend::Hash".
+ By default, if no backend is specified,
+ Plack::Middleware::Throttle::Backend::Hash is used.
+
key_prefix
Key to prefix sessions entry in the cache.