Skip to content

Adam-Stomski/aerospike_c_ruby_rails_cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AerospikeCRubyRailsCache

Add to gemfile:

gem "aerospike_c_ruby", github: 'itelab/AerospikeCRuby'
gem 'aerospike_c_ruby_rails_cache', github: "Adam-Stomski/aerospike_c_ruby_rails_cache"

Initialize:

config.cache_store = :aerospike_c_ruby_store, {
  host: '127.0.0.1',
  port: 3000,
  ns:   'test',
  set:  'cache',
  bin:  'entry',
}

Usage:

Rails.cache.write('test', "testcache") # => true
Rails.cache.read('test') => "testcache"

Rails.cache.write('test', "testcache", expires_in: 5)
sleep 5
Rails.cache.read('test') => nil

Copyright

2016 Adam Stomski, released under the MIT license

About

Rails cache using Aerospike and AerospikeCRuby gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages