Skip to content

listora/memcached-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memcached-Component Circle CI

A component that holds a Spymemcached client connection, compatible with Spyglass. Starting the component will create the connection, while stopping the component will close it.

Installation

Add the following dependency to your project.clj file:

[listora/memcached-component "0.1.2"]

Usage

Require the library:

(require '[listora.component.memcached :refer [memcached-client]]
         '[com.stuartsierra.component :as component])

Then create the client component:

(memcached-client {:servers "127.0.0.1:11211"})

Starting the component will create a :conn key:

(-> (memcached-client {:servers "127.0.0.1:11211"})
    (component/start)
    :conn)

This key will be removed when the component is stopped.

License

Copyright © 2014 Listora

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A component for managing a connection to Memcached

Resources

Stars

Watchers

Forks

Packages

No packages published