Qore MemcachedDataProvider Module Reference 1.0
Loading...
Searching...
No Matches

Introduction to the MemcachedDataProvider Module

Memcached Logo

The MemcachedDataProvider module provides a dataproviderintro "data provider" API for Memcached servers. It implements the memcached binary protocol for efficient communication and provides a complete set of operations for cache management.

This data provider provides Memcached API access to:

Memcached Data Provider Factory

The name of the Memcached data provider factory is memcached.

Memcached Data Provider Examples

These examples are with qdp, the command-line interface to the Data Provider API.

API Example: Set a Value
qdp 'memcached{url=memcached://localhost:11211}/storage/set' key=mykey,value="hello world",exptime=3600
API Example: Get a Value
qdp 'memcached{url=memcached://localhost:11211}/retrieval/get' key=mykey
API Example: Increment Counter
qdp 'memcached{url=memcached://localhost:11211}/numeric/incr' key=counter,delta=1
API Example: Get Stats
qdp 'memcached{url=memcached://localhost:11211}/stats/general'

Release Notes

MemcachedDataProvider v1.0

  • Initial release of the module