Sha256: 8e1970df99a3ffe38cd4c4a90144160746892287676bf1128811a24a1dd60a0f
Contents?: true
Size: 546 Bytes
Versions: 8
Compression:
Stored size: 546 Bytes
Contents
require "redis" require "resque" require "resque-loner" # What class will be liking/disliking objects and receiving recommendations? Recommendable.user_class = "User" # 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. Recommendable.redis = Redis.new(:host => "localhost", :port => 6379) # Connect to Redis via a UNIX socket instead # Recommendable.redis = Redis.new(:sock => "") Recommendable.redis.select("15")
Version data entries
8 entries across 8 versions & 1 rubygems