[sr-dev] git:master: memcached(sr): add support for setting of value expiration - $mctex(key)

Henning Westerholt henning.westerholt at 1und1.de
Wed Oct 7 18:38:32 CEST 2009


Module: sip-router
Branch: master
Commit: f3528b2e48a8dca862f61ebef2dd2eb2bd843234
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f3528b2e48a8dca862f61ebef2dd2eb2bd843234

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Wed Oct  7 18:31:08 2009 +0200

memcached(sr): add support for setting of value expiration - $mctex(key)

- add support for setting of value expiration. As the memcache library
  don't provide functions to later change the expire value of an existing
  key we need to fetch the value and then store it again with the given
  time. This should be changed with a different (improved) library
- refactor functions a bit, use a helper method instead of duplicating
  the cache access functions
- update documentation

---

 modules_k/memcached/README                  |   30 +++-
 modules_k/memcached/doc/memcached_admin.xml |   19 +++
 modules_k/memcached/mcd_var.c               |  223 ++++++++++++++++-----------
 modules_k/memcached/mcd_var.h               |   13 ++
 modules_k/memcached/memcached.c             |    4 +-
 5 files changed, 191 insertions(+), 98 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=f3528b2e48a8dca862f61ebef2dd2eb2bd843234



More information about the sr-dev mailing list