Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
More readme/example updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Feb 16, 2013
1 parent 193a3b5 commit a9c838c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -61,6 +61,10 @@ print '# all keys: '
pp namespaced_client.keys
# all keys: ["stats", "flipper_features", "search"]

print "# known flipper features: "
pp namespaced_client.smembers("flipper_features")
# known flipper features: ["stats", "search"]

puts '# stats keys'
pp namespaced_client.hgetall('stats')
# stats keys
Expand Down
11 changes: 8 additions & 3 deletions examples/internals.rb
Expand Up @@ -34,12 +34,16 @@

print '# all keys: '
pp namespaced_client.keys
puts
# all keys: ["stats", "flipper_features", "search"]
puts

print "# known flipper features: "
pp namespaced_client.smembers("flipper_features")
# known flipper features: ["stats", "search"]
puts

puts '# stats keys'
pp namespaced_client.hgetall('stats')
puts
# stats keys
# {"boolean"=>"true",
# "groups/admins"=>"1",
Expand All @@ -49,12 +53,13 @@
# "groups/early_access"=>"1",
# "actors/90"=>"1",
# "actors/180"=>"1"}
puts

puts '# search keys'
pp namespaced_client.hgetall('search')
puts
# search keys
# {"boolean"=>"true"}
puts

puts '# flipper get of feature'
pp adapter.get(flipper[:stats])
Expand Down

0 comments on commit a9c838c

Please sign in to comment.