Class: RedisWebManager::Action

Inherits:
Base
  • Object
show all
Defined in:
lib/redis_web_manager/action.rb

Instance Attribute Summary

Attributes inherited from Base

#instance

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RedisWebManager::Base

Instance Method Details

#del(key) ⇒ Object



13
14
15
# File 'lib/redis_web_manager/action.rb', line 13

def del(key)
  redis.del(key)
end

#flushallObject



5
6
7
# File 'lib/redis_web_manager/action.rb', line 5

def flushall
  redis.flushall
end

#flushdbObject



9
10
11
# File 'lib/redis_web_manager/action.rb', line 9

def flushdb
  redis.flushdb
end

#rename(old_name, new_name) ⇒ Object



17
18
19
# File 'lib/redis_web_manager/action.rb', line 17

def rename(old_name, new_name)
  redis.rename(old_name, new_name)
end