Skip to content

emeier/cfspymemcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ColdFusion memcached client

ColdFusion wrapper for the spymemcached java client

Installation

Copy the 'spymemcached' folder into your application root or create a mapping to it.

By default, the client loads the spymemcached jar (2.7.3) using javaLoader

Usage

Create a MemcachedClient in the application scope.

<cfset application.memcachedClient = CreateObject("component","spymemcached.MemcachedClient").init("localhost:11211") />

After connecting, you can start to make requests.

<cfset application.memcachedClient.set("foo","bar",300) />

<cfset foo = application.memcachedClient.get("foo") />

<cfset application.memcachedClient.delete("foo") />

All the basic commands (set, get, delete, add, etc...) are available, more advanced CAS commands have not yet been implemented

If you reload the application, you'll want to shutdown the client first:

<cfset application.memcachedClient.shutdown() />

About

ColdFusion wrapper for the java spymemcached client

Resources

Stars

Watchers

Forks

Packages

No packages published