Sha256: ee98dc289afd320fe31f85ea585090dddb8b8939b309f6b915b2e37344b92c5e
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
require "redis" # Recommendable requires a connection to a running redis-server. Either create # a new instance based on a host/port or UNIX socket, or pass in an existing # Redis client instance. <% if options.redis_socket %># <% end %>Recommendable.redis = Redis.new(:host => "<%= redis_host %>", :port => <%= redis_port %>) # Connect to Redis via a UNIX socket instead <% unless options.redis_socket %># <% end %>Recommendable.redis = Redis.new(:sock => "<%= options.redis_socket %>") # Tell Redis which database to use (usually between 0 and 15). The default of 0 # is most likely okay unless you have another application using that database. # Recommendable.redis.select "0"
Version data entries
3 entries across 3 versions & 1 rubygems