Event.pm now takes arbitrary parameters
added a osrfCacheSetExpire method for manually setting the cache expire
time of an object after the object has already been cached
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@604
9efc2488-bf62-4759-914b-
345cdb29e865
}
+int osrfCacheSetExpire( time_t seconds, char* key, ... ) {
+ if( key ) {
+ VA_LIST_TO_STRING(key);
+ jsonObject* o = osrfCacheGetObject( VA_BUF );
+ osrfCacheRemove(VA_BUF);
+ return osrfCachePutObject( VA_BUF, o, seconds );
+ }
+ return -1;
+}
+
+
*/
int osrfCacheRemove( char* key, ... );
+/**
+ * Sets the expire time to 'seconds' for the given key
+ */
+int osrfCacheSetExpire( time_t seconds, char* key, ... );
+