Skip to content

camshaft/count_buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

count_buffer

buffer a large set of counters and flush periodically.

api

name = :my_counters
size = 128
flush = fn(bucket, key, count) ->
  ## persist your counts here
end
CountBuffer.start(name, size, flush)

bucket = "page_views"
key = "index.html"

CountBuffer.increment(name, bucket, key)
CountBuffer.increment(name, bucket, key, 10)

About

buffer a large set of counters and flush periodically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages