| Rose::DB::Cache::Entry(3pm) | User Contributed Perl Documentation | Rose::DB::Cache::Entry(3pm) |
Rose::DB::Cache::Entry - A cache entry for use with Rose::DB::Cache objects.
package My::DB::Cache::Entry;
use base 'Rose::DB::Cache::Entry';
...
package My::DB::Cache;
use base 'Rose::DB::Cache';
use My::DB::Cache::Entry;
__PACKAGE__->entry_class('My::DB::Cache::Entry');
...
Rose::DB::Cache::Entry provides both an API and a default implementation of a cache entry for use with Rose::DB::Cache objects. A Rose::DB::Cache-derived class uses Rose::DB::Cache::Entry-derived objects to store cache entries.
The default implementation includes attributes for storing the cache key, the cached Rose::DB-derived object itself, and some boolean flags. Subclasses can add new attributes as desired.
John C. Siracusa (siracusa@gmail.com)
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 2023-03-04 | perl v5.36.0 |