pike.git / lib / modules / Cache.pmod / cache.pike

version» Context lines:

pike.git/lib/modules/Cache.pmod/cache.pike:110:    rd[(string)d]=1;    }    }    storage->set(key,value,    (max_life?time(1)+max_life:0),    preciousness,rd);   }      //! Forcibly removes some key.   //! If the 'hard' parameter is supplied and true, deleted objects will also - //! have their @[lfun::destroy] method called upon removal by some + //! have their @[lfun::_destruct] method called upon removal by some   //! backends (i.e. memory)   void delete(string key, void|int(0..1)hard) {    if (!stringp(key)) key=(string)key; // paranoia    storage->delete(key,hard);   }         //notice. policy->expire is not guarranteed to be reentrant.   // Generally speaking, it will not be, but it would be very stupid to   // require so. The whole garbage collection architecture is heavily
pike.git/lib/modules/Cache.pmod/cache.pike:139:    if (cleanup_lock)    return;    cleanup_lock=1;    expiry_function(storage);    cleanup_lock=0;   }      #if constant(thread_create)   protected Thread.Thread cleanup_thread;    - protected void destroy() + protected void _destruct()   {    if (Thread.Thread t = cleanup_thread) {    cleanup_thread = 0;    t->wait();    }   }   #endif      //!   void start_cleanup_cycle() {