Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
= memcache-client
A ruby library for accessing memcached.
Source:
http://github.com/mperham/memcache-client
== Installing memcache-client
Just install the gem:
$ sudo gem install memcache-client
== Using memcache-client
With one server:
CACHE = MemCache.new 'localhost:11211'
Or with multiple servers:
CACHE = MemCache.new %w[one.example.com:11211 two.example.com:11211]
== Tuning memcache-client
The MemCache.new method takes a number of options which can be useful at times. Please read the source comments there for an overview. If you are using Ruby 1.8.x and using multiple memcached servers, you should install the RubyInline gem for ultimate performance.
== Using memcache-client with Rails
Rails 2.1+ includes memcache-client 1.5.0 out of the box. See ActiveSupport::Cache::MemCacheStore and the Rails.cache method for more details. Rails 2.3+ will use the latest memcache-client gem installed.
== Using memcache-client with EventMachine
memcache-client 1.8.0 added support for native EventMachine connections using Ruby 1.9. If you are using an EventMachine-based application (e.g. thin), you can activate the EventMachine support like so:
require 'memcache' require 'memcache/event_machine'
EM.run do Fiber.new do m = MemCache.new('localhost:11211') m.set 'abc', 'xyz' m.get 'abc' end.resume end
== Questions?
memcache-client is maintained by Mike Perham and was originally written by Bob Cottrell, Eric Hodel and the seattle.rb crew.
Email:: mailto:mperham@gmail.com Twitter:: mperham[http://twitter.com/mperham] WWW:: http://mikeperham.com
If my work on memcache-client is something you support, please take a moment to recommend me at WWR[http://workingwithrails.com/person/10797-mike-perham]. I'm not asking for money, just a electronic "thumbs up".
FAQs
Unknown package
We found that memcache-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.