Sha256: 5e60ad804915ef7d0f28fbd1b4422e01cd6fda8046db7a80f0d1b76e73200d4c
Contents?: true
Size: 454 Bytes
Versions: 7
Compression:
Stored size: 454 Bytes
Contents
# Trifle is a simple storage and lookup gem for GeoIP data # using Redis as storage require "trifle/loader" require "trifle/finder" require "trifle/initialize_with_redis" class Trifle include InitializeWithRedis def load options = {} loader.handle options end def find ip finder.handle ip end protected def loader @loader = Loader.new(redis, key: key) end def finder @finder = Finder.new(redis, key: key) end end
Version data entries
7 entries across 7 versions & 1 rubygems