Logging cache hits in production

23 views
Skip to first unread message

Richard Yee

unread,
Jul 18, 2017, 5:55:38 PM7/18/17
to simple-spring-memecached
Is there a way to log when a result is obtained from the cache (cache hit) without setting logging level to DEBUG? We would like to track the # of hits vs misses while running in production but get all the debug logging.

Thanks,
Richard

Jakub Białek

unread,
Jul 19, 2017, 12:43:14 AM7/19/17
to simple-spring-memecached
There is no way to do this directly in SSM other than enabling DEBUG on some loggers but there are others ways outside of SSM.
Depends of memcached provider you can check if xmemcached or spymemcached collect some statistics. If not then memcached service provide a command (stats) to return some counters and settings like number of set and get commands. Here you can see an example output.

-- Ragnor

--
You received this message because you are subscribed to the Google Groups "simple-spring-memecached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-spring-memecached+unsub...@googlegroups.com.
To post to this group, send email to simple-spring-memecached@googlegroups.com.
Visit this group at https://groups.google.com/group/simple-spring-memecached.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages