marten_memcached_cache

Version, currently 0.1.02 versions

github.com/martenframework/marten-memcached-cache

A Memcached cache store for the Marten web framework.

1 stars
1 dependent
License: MIT

Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  marten_memcached_cache:
    github: martenframework/marten-memcached-cache
    version: ~> 0.1.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

Marten Memcached Cache

CI CI

Marten Memcached Cache provides a Memcached cache store that can be used with Marten web framework's cache system.

Installation

Simply add the following entry to your project's shard.yml:

dependencies:
  marten_memcached_cache:
    github: martenframework/marten-memcached-cache

And run shards install afterward.

Configuration

First, add the following requirement to your project's src/project.cr file:

require "marten_memcached_cache"

Then you can configure your project to use the Memcached cache store by setting the corresponding configuration option as follows:

Marten.configure do |config|
  config.cache_store = MartenMemcachedCache::Store.new(host: "localhost", port: 11211)
end

The host and port arguments are optional and default respectively to localhost and 11211. It should be noted that this cache store also supports all the existing initialization options in addition to these arguments (eg. namespace, version, expires_in, etc). Please refer to the cache system documentation to learn more about Marten's caching framework.

Authors

Morgan Aubert (@ellmetha) and contributors.

License

MIT. See LICENSE for more details.