Skip to content

Commit

Permalink
Ruby Working
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-joshi committed May 13, 2019
1 parent 7cadfa6 commit 25d8f0f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cache/cache.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#!/usr/bin/env ruby -w
require 'mini_cache'

store = MiniCache::Store.new
$store = MiniCache::Store.new

def store(key,value)
store.set(key, value)
def save(key,value)
$store.set(key, value)
end

def retrieve(key)
return puts(store.get(key))
return $store.get(key)
end

store "video","123"
retrieve "video"

0 comments on commit 25d8f0f

Please sign in to comment.