Skip to content

Instantly share code, notes, and snippets.

@ababup1192
Last active August 29, 2015 14:15
Show Gist options
  • Save ababup1192/9fef72b9316989306f1e to your computer and use it in GitHub Desktop.
Save ababup1192/9fef72b9316989306f1e to your computer and use it in GitHub Desktop.
Redis docker and fig

Getting started

start redis server daemon

fig up -d

using redis

fig run redis redis-cli -h redis  # (please push long enter key..)

tutorial redis

insert

set num 10
set str hello
lpush mylist firstvalue
lpush mylist secondvalue
lpush mylist thirdvalue

find

get num
get str
lrange mylist 0 -1
redis:
image: dockerfile/redis
ports:
- "6379:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment