--- parser3/src/include/pa_cache_managers.h 2001/11/08 11:04:12 1.1 +++ parser3/src/include/pa_cache_managers.h 2002/08/01 11:41:14 1.8 @@ -1,16 +1,17 @@ /** @file Parser: cache managers center decl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_cache_managers.h,v 1.1 2001/11/08 11:04:12 paf Exp $ + $Date: 2002/08/01 11:41:14 $ */ #ifndef PA_CACHE_MANAGERS_H #define PA_CACHE_MANAGERS_H -#include "pa_config_includes.h" +static const char* IDENT_CACHE_MANAGERS_H="$Date: 2002/08/01 11:41:14 $"; + #include "pa_hash.h" #include "pa_value.h" @@ -24,14 +25,19 @@ public: Cache_managers(Pool& apool) : Hash(apool) { } + ~Cache_managers(); + /// maybe-expires all caches it contains, each cache manager desides it itself void maybe_expire(); }; /// can return status and can expire it contents -class Cache_manager { +class Cache_manager : public Pooled { public: + Cache_manager(Pool& apool) : Pooled(apool) {} + virtual ~Cache_manager() {} + /// if filter_server_id not null, returns status only Cachable -s with matching cacheable_item_server_id() virtual Value& get_status(Pool& pool, const String *source) =0; virtual void maybe_expire_cache() {}