Installation is straight-forward: just add the gem to your Gemfile:

gem "all_futures", "~> 1.0"

All Futures relies on Redis via the Kredis gem. Make sure that you have a Redis server running and that you have followed the Kredis installation instructions.

If possible, consider running a Redis instance specifically for your All Futures instances. This will allow maximum flexibility and removes any ambiguity about the purpose of the keys.

As of the time of this writing, the Kredis README suggests passing ahost option in yourredis/shared.yml- this is not a good idea.

Instead, use theurl option, which allows you to pass the host, port and password (if applicable) in one string.

Redis Cache Eviction Policy

All Futures is designed to create Redis keys on an as-needed basis. No attempt is made to clear keys, as there is an expectation that you will set an eviction policy which will remove old keys to make room for new ones.

The allkeys-lru policy is likely your best bet for an All Futures configuration.