Rose::...:Entry(3pm)
β¨ Rose::DB::Cache::Entry β¨
okay so picture this: it's a <pink>Perl</pink> manpage from the User Contributed Perl Documentation collection, and bestie, it's literally about one (1) thing β a single cache entry that lives inside a Rose::DB::Cache object. tiny. precious. iconic. π
πΈ NAME πΈ
Rose::DB::Cache::Entry β a cache entry for use with Rose::DB::Cache objects. that's it, that's the whole job description. π
π SYNOPSIS π
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');
...
see how the entry class gets handed to the cache class through entry_class? that's the whole glow-up pipeline right there. β¨
π¦ DESCRIPTION π¦
so Rose::DB::Cache::Entry gives you both an API and a default implementation of a cache entry for use with Rose::DB::Cache objects. no cap. a Rose::DB::Cache-derived class uses Rose::DB::Cache::Entry-derived objects to actually store its cache entries. π«Ά
the default implementation ships with attributes for storing:
- the cache key π
- the cached
Rose::DB-derived object itself π - and some boolean flags π©
and here's the fun part: subclasses can just add new attributes whenever they want. go off, bestie. π
π CONSTRUCTORS π
new PARAMSβ constructs a brand newRose::DB::Cache::Entryobject based on PARAMS, where PARAMS are name/value pairs. and the lil treat here? any object method is a valid parameter name. so go crazy. π
π OBJECT METHODS π
created_during_apache_startup [BOOL]β get or set a boolean value telling you whether or not the db object inside this cache entry was created while the apache server was starting up. yes, apache. yes, startup. it matters, iykyk. π§db [DB]β get or set theRose::DB-derived object stored in this cache entry. the main character of the entry, honestly. πkey [KEY]β get or set the cache key for this entry. πprepared [BOOL]β get or set a boolean value saying whether or not a cache entry is "prepared." now listen: what that flag means is entirely up to theRose::DB::Cache-derived class that uses this entry class. the entry does not decide. the entry just holds the vibe. πis_preparedβ returns true ifpreparedis true, false otherwise. short, sweet, slays. β¨
π AUTHOR π
John C. Siracusa (siracusa@gmail.com) β ty for your service, legend π«‘π
π LICENSE π
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.
and that's a wrap on this lil guy πΈ this page came to you from perl v5.40.1, dated 2026-07-31, filed under Rose::...:Entry(3pm) β stay caffeinated, stay cached, mwah π
π
π¦ where this page comes from
- ubuntu stonking: librose-db-perl 0.788-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms