Memcached component for classic ASP

Memcached component for classic ASP

set oMemcache = createobject("memcacheCOM.memcache")
Call oMemcache.addServer("128.1.230.209")
Call oMemcache.addServer("mymemcacheserver.local:11211")
Call oMemcache.init()

Call oMemcache.set ("mykey", "myvalue", 3600)
wscript.echo oMemcache.get ("mykey")
Call oMemcache.delete ("mykey")

dim tTest(2) : tTest(0) = "aaa" : tTest(1) = "bbb"
Call oMemcache.set ("myArray", (tTest), 30)
dim tResult
tResult=oMemcache.get ("myArray")
wscript.echo tResult(0)
wscript.echo tResult(1)

set oMemcache = nothing
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s