lib/dcell/registries/redis_adapter.rb in dcell-0.7.1 vs lib/dcell/registries/redis_adapter.rb in dcell-0.8.0
- old
+ new
@@ -57,10 +57,10 @@
@redis = redis
end
def get(key)
string = @redis.hget 'globals', key.to_s
- Marshal.load string
+ Marshal.load string if string
end
# Set a global value
def set(key, value)
string = Marshal.dump value