|
|
| version 1.2, 2001/11/08 14:47:31 | version 1.7, 2002/08/01 11:26:46 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: cache managers center decl. | Parser: cache managers center decl. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | $Id$ |
| */ | */ |
| Line 10 | Line 10 |
| #ifndef PA_CACHE_MANAGERS_H | #ifndef PA_CACHE_MANAGERS_H |
| #define PA_CACHE_MANAGERS_H | #define PA_CACHE_MANAGERS_H |
| #include "pa_config_includes.h" | static const char* IDENT_CACHE_MANAGERS_H="$Id$"; |
| #include "pa_hash.h" | #include "pa_hash.h" |
| #include "pa_value.h" | #include "pa_value.h" |
| Line 24 public: | Line 25 public: |
| Cache_managers(Pool& apool) : Hash(apool) { | Cache_managers(Pool& apool) : Hash(apool) { |
| } | } |
| ~Cache_managers(); | |
| /// maybe-expires all caches it contains, each cache manager desides it itself | /// maybe-expires all caches it contains, each cache manager desides it itself |
| void maybe_expire(); | void maybe_expire(); |
| Line 33 public: | Line 36 public: |
| class Cache_manager : public Pooled { | class Cache_manager : public Pooled { |
| public: | public: |
| Cache_manager(Pool& apool) : Pooled(apool) {} | 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() | /// 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 Value& get_status(Pool& pool, const String *source) =0; |