# README
RedisCache
This package implements tegola's cache interface for use with Redis. If a redis instance is running locally with default configurations solely for tegola simply include the following snippet in tegola's config file:
[cache]
type="redis"
Properties
The rediscache config supports the following properties:
[!IMPORTANT] Connecting to redis via
uri
is going to be the default from v0.22.0 onwards. The propertiesnetwork
,address
,password
db
andssl
are deprecated.
uri
(string): protocolredis://
orrediss://
followed by<user>:<password>@<host>:<port>/<database>
network
(string): [Optional] Network type, eithertcp
orunix
. Defaults to 'tcp'.address
(string): [Optional] the address of the Redis instance in form ofip:port
. Defaults to '127.0.0.1:6379'.password
(string): [Optional] password for the Redis instance. Defaults to '' (no password).db
(int): [Optional] the database within the Redis instance to cache to.max_zoom
(int): [Optional] the max zoom the cache should cache to. After this zoom, Set() calls will return before doing work.ttl
(int): [Optional] the key ttl time in seconds. Defaults to 0 (the key has no expiration time).ssl
(bool): [Optional] encrypt connection to the Redis server. Defaults to false (no SSL/TLS)
# Functions
TODO @iwpnd: deprecate connection with Addr CreateOptions creates redis.Options from an implicit or explicit c.