Pickdate and some better general foundation styling

This commit is contained in:
2014-04-16 14:13:05 +02:00
parent ed27574b77
commit 3ef888a30a
100 changed files with 5429 additions and 31 deletions
+5 -4
View File
@@ -4,20 +4,21 @@ module Qwaiter
# mainly for testing purposes
def self.set(key, value)
connection.set(key, value)
connection.set(key, value) rescue value
end
def self.get(key)
connection.get(key, quiet: true).to_i
connection.get(key, quiet: true).to_i rescue 0
end
def self.incr(key, options = {})
options[:initial] ||= 0
connection.incr(key, options)
connection.incr(key, options) rescue 1
end
def self.decr(key, options = {})
connection.decr(key, options)
options[:initial] ||= 0
connection.decr(key, options) rescue 0
end
end
end