Sha256: 995a52609bc952d5badf3877e77cbc85fe4ea872aae6568ab19e376f5ea1ad18
Contents?: true
Size: 506 Bytes
Versions: 7
Compression:
Stored size: 506 Bytes
Contents
require "redis" # 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
7 entries across 7 versions & 1 rubygems