Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmoe committed Feb 15, 2024
1 parent 550ada0 commit 7ab547b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/litestack/litecache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class Litecache

def initialize(options = {})
options[:size] = DEFAULT_OPTIONS[:min_size] if options[:size] && options[:size] < DEFAULT_OPTIONS[:min_size]
#@last_visited = {}
init(options)
@expires_in = @options[:expiry] || 60 * 60 * 24 * 30
collect_metrics if @options[:metrics]
Expand Down Expand Up @@ -127,7 +126,6 @@ def set_unless_exists(key, value, expires_in = nil)
def get(key)
key = key.to_s
if (record = @conn.acquire { |cache| cache.stmts[:getter].execute!(key)[0] })
#@last_visited[key] = true
capture(:get, key, 1)
return record[1]
end
Expand All @@ -144,7 +142,6 @@ def get_multi(*keys)
key = keys[i].to_s
if (record = conn.stmts[:getter].execute!(key)[0])
results[keys[i]] = record[1] # use the original key format
#@last_visited[key] = true
capture(:get, key, 1)
else
capture(:get, key, 0)
Expand Down

0 comments on commit 7ab547b

Please sign in to comment.