6 # A module to cache attributes. The idea is that you can look
7 # up information in a database, and then cache it. Repeated
8 # requests for the same information will then have the cached
9 # values added to the request.
11 # The module can cache a fixed set of attributes per key.
12 # It can be listed in "authorize", "post-auth", "pre-proxy"
15 # If you want different things cached for authorize and post-auth,
16 # you will need to define two instances of the "cache" module.
18 # The module returns "ok" if it found a cache entry.
19 # The module returns "updated" if it added a new cache entry.
20 # The module returns "noop" if it did nothing.
23 # The key used to index the cache. It is dynamically expanded
27 # The TTL of cache entries, in seconds. Entries older than this
30 # You can set the TTL per cache entry, but adding a control
31 # variable "Cache-TTL". The value there will over-ride this one.
32 # Setting a Cache-TTL of 0 means "delete this entry".
34 # This value should be between 10 and 86400.
37 # A timestamp used to flush the cache, via
39 # radmin -e "set module config cache epoch 123456789"
41 # Where last value is a 32-bit Unix timestamp. Cache entries
42 # older than this are expired, and new entries added.
44 # You should ALWAYS leave it as "epoch = 0" here.
47 # The module can also operate in status-only mode where it will
48 # not add new cache entries, or merge existing ones.
50 # To enable set the control attribute "Cache-Status-Only" to "yes"
51 # The module will return "ok" if it found a cache entry.
52 # The module will return "notfound" if it failed to find a cache entry,
53 # or the entry had expired.
55 # Note: expired entries will still be removed.
57 # If yes the following attributes will be added to the request list:
58 # * Cache-Entry-Hits - The number of times this entry has been
62 # The list of attributes to cache for a particular key.
63 # Each key gets the same set of cached attributes.
64 # The attributes are dynamically expanded at run time.
66 # You can specify which list the attribute goes into by
67 # prefixing the attribute name with the list. This allows
68 # you to update multiple lists with one configuration.
70 # If no list is specified the request list will be updated.
73 reply:Reply-Message += "I'm the cached reply from %t"
75 control:Class := 0x010203