Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1630 Bytes
1 | require 'rack' |
2 | |
3 | # = HTTP Caching For Rack |
4 | # |
5 | # Rack::Cache is suitable as a quick, drop-in component to enable HTTP caching |
6 | # for Rack-enabled applications that produce freshness (+Expires+, +Cache-Control+) |
7 | # and/or validation (+Last-Modified+, +ETag+) information. |
8 | # |
9 | # * Standards-based (RFC 2616 compliance) |
10 | # * Freshness/expiration based caching and validation |
11 | # * Supports HTTP Vary |
12 | # * Portable: 100% Ruby / works with any Rack-enabled framework |
13 | # * Disk, memcached, and heap memory storage backends |
14 | # |
15 | # === Usage |
16 | # |
17 | # Create with default options: |
18 | # require 'rack/cache' |
19 | # Rack::Cache.new(app, :verbose => true, :entitystore => 'file:cache') |
20 | # |
21 | # Within a rackup file (or with Rack::Builder): |
22 | # require 'rack/cache' |
23 | # use Rack::Cache do |
24 | # set :verbose, true |
25 | # set :metastore, 'memcached://localhost:11211/meta' |
26 | # set :entitystore, 'file:/var/cache/rack' |
27 | # end |
28 | # run app |
29 | module Rack::Cache |
30 | autoload :Request, 'rack/cache/request' |
31 | autoload :Response, 'rack/cache/response' |
32 | autoload :Context, 'rack/cache/context' |
33 | autoload :Storage, 'rack/cache/storage' |
34 | autoload :CacheControl, 'rack/cache/cachecontrol' |
35 | |
36 | # Create a new Rack::Cache middleware component that fetches resources from |
37 | # the specified backend application. The +options+ Hash can be used to |
38 | # specify default configuration values (see attributes defined in |
39 | # Rack::Cache::Options for possible key/values). When a block is given, it |
40 | # is executed within the context of the newly create Rack::Cache::Context |
41 | # object. |
42 | def self.new(backend, options={}, &b) |
43 | Context.new(backend, options, &b) |
44 | end |
45 | end |