File: basic.rb

package info (click to toggle)
ruby-redis 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,160 kB
  • sloc: ruby: 11,445; makefile: 117; sh: 24
file content (17 lines) | stat: -rw-r--r-- 156 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'redis'

r = Redis.new

r.del('foo')

puts

p 'set foo to "bar"'
r['foo'] = 'bar'

puts

p 'value of foo'
p r['foo']