stefanwille / crystal-redis

Full featured Redis client for Crystal
MIT License
381 stars 61 forks source link

Namespace for redis keys #89

Closed dannnylo closed 4 years ago

dannnylo commented 4 years ago

This PR adds the parameter namespace to Redis initializer.

redis = Redis.new(namespace: "abc") regis.set('foo', 1) # Saves on key abc::foo regis.get('foo') # => 1

Closes issue #3

stefanwille commented 4 years ago

Hi, thanks for this PR. I like it and intend to merge it. As I have started a new job recently, I am quite busy, so please be a bit patient.

stefanwille commented 4 years ago

Merged, thanks!