pike.git / lib / modules / Cache.pmod / Storage.pmod / Memory.pike

version» Context lines:

pike.git/lib/modules/Cache.pmod/Storage.pmod/Memory.pike:1:   /*    * A RAM-based storage manager.    * by Francesco Chemolli <kinkie@roxen.com>    * (C) 2000 Roxen IS    * -  * $Id: Memory.pike,v 1.1 2000/07/02 20:15:57 kinkie Exp $ +  * $Id: Memory.pike,v 1.2 2000/07/05 21:37:25 kinkie Exp $    *    * This storage manager provides the means to save data to memory.    * In this manager I'll add reference documentation as comments to    * interfaces. It will be organized later in a more comprehensive format    *    * Settings will be added later.    */      class Data {   
pike.git/lib/modules/Cache.pmod/Storage.pmod/Memory.pike:98:    if (!notouch && tmp) tmp->touch();    return tmp;   }      void aget(string key,    function(string,int(0..0)|Cache.Data:void) callback) {    mixed rv=get(key);    callback(key,rv);   }    - Cache.Data|int(0..0) delete(string key, void|int(0..1) hard) { + void delete(string key, void|int(0..1) hard) {    object(Cache.Data) rv=data[key];    if (hard) {    destruct(rv->value()); -  +  }    m_delete(data,key);    return 0;   } -  m_delete(data,key); -  return rv; - } +