Skip to content

Instantly share code, notes, and snippets.

@sue445
Created April 24, 2013 03:42
Show Gist options
  • Save sue445/5449443 to your computer and use it in GitHub Desktop.
Save sue445/5449443 to your computer and use it in GitHub Desktop.
GAErminal上でmemcacheのhitRatioをお手軽計算
import org.slim3.memcache.Memcache
def stats = Memcache.statistics()
def totalCount = stats.getHitCount() + stats.getMissCount()
def hitRatio = stats.getHitCount() / totalCount
println hitRatio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment