I am recently learning to learn more with Memcached and how Dully plays with various caching strategies. I am trying to remotely connect with our memcachier on Hiroko with one of my production level projects, through some tutorials, I came to know how to connect far away from Remote Remote Commanders.
sandbox.rb:
requires 'dalli' memcachier_server = 'host_name: port' memcachier_user = 'abc123' memcachier_password = '1x8w3asdf82jdf' cache = Dalli :: Client.new (memcachier_server, {: username = & gt; memcachier_user ,: password = & gt; memcachier_password ,: failover => true ,: socket_timeout = & Gt; 1.5 ,: socket_failure_delay = & gt; 0.2}) c cache Stat
I have confirmed this when I run Ruby sandbox.rb
and the output arrives Is: [2015 -03-17T 101: 45: 20.703729 # 42640] INFORMATION: - Certifying Dalli / SASL as ABC 123 [2015-03- 17T01: 45: 21.305454 # 42640] Info -: Dalli / SASL: ABC 123 {"XYM .com: 11211" => {"Curr_items" =>
"24446", "Bytes" = & "0," "cas_hits" = & gt; "0", "cas_misses" = & gt; "0", "cas_badval" = "110738688", "evictions" = & gt; "2586065", "Timeout" => "0", "limit_maxbytes" => "120586239", "total_items" = & gt; "3782835", "Bytes_bread" = & gt; "1559184266", "Bytes_written" = & gt; "33808073647", "curr_connections" = & gt; "5", "Total_connection" = & gt; "1098", "auth_cmds" = & gt; "1098", "auth_errors" = & gt; "0", "cmd_get" = & gt; "19371543", "cmd_set" = & gt; "3782835", "cmd_delete" = & gt; "15829", "cmd_touch" => "0", "cmd_flush" => "0", "get_hits" => "16476147", "get_misses" = "0," "incr_mitses" = & gt; "0," "delete_hits" = & gt; "4131", "delete_misses" = & gt; "11698", "incr_hits" => "0", "incr_misses" = & gt; "0", "decr_hits" = & gt; "0", "decr_misses" = & gt; "0", "touch_hits" => "0", "touch_misses" = & gt; "0", "time" = & gt; "1426527920"}}
I am trying to figure out how to lose more in cached keys and values. To be more specific: I want to at least list all the keys and values in the memcached using Deli currently. I can not find the right solution I found The best match is that helps you get it locally.
Any thoughts?
No comments:
Post a Comment