|
|
| version 1.1, 2001/11/08 11:04:12 | version 1.3, 2001/12/13 11:09:46 |
|---|---|
| Line 24 public: | Line 24 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(); |
| }; | }; |
| /// can return status and can expire it contents | /// can return status and can expire it contents |
| class Cache_manager { | class Cache_manager : public Pooled { |
| public: | 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() | /// 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; |
| virtual void maybe_expire_cache() {} | virtual void maybe_expire_cache() {} |