A Vapor provider for Redis database caching.
Read more about Providers in Vapor's documentation.
This wrapper conforms Redbird to Vapor's CacheProtocol
.
brew install redis
brew services start redis
Add config
{
"address": "127.0.0.1",
"port": "6379"
}
If password is required, then add "password": "secret" to the config
Add the provider
try drop.addProvider(VaporRedis.Provider(config: drop.config))
try drop.cache.set("cacheKey", Node("test"))
print(try drop.cache.get("cacheKey")) // Will print "test"
Travis builds Swift VaporRedis on both Ubuntu 14.04 and macOS 10.11. Check out the .travis.yml
file to see how this package is built and compiled during testing.
Visit the Vapor web framework's documentation for instructions on how to install Swift 3.
We pride ourselves on providing a diverse and welcoming community. Join your fellow Vapor developers in our slack and take part in the conversation.
Node has been tested on OS X 10.11, Ubuntu 14.04, and Ubuntu 15.10.
Created by Tanner Nelson.