GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ROSE::DB::CACHE::ENTRY (3)

.ds Aq ’

NAME

Rose::DB::Cache::Entry - A cache entry for use with Rose::DB::Cache objects.

CONTENTS

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);
  ...



DESCRIPTION

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.

CONSTRUCTORS

<B>new PARAMSB> Constructs a new Rose::DB::Cache::Entry object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name.

OBJECT METHODS

<B>created_during_apache_startup [BOOL]B> Get or set a boolean value indicating whether or not the db object this cache entry contains was created while the apache server was starting up.
<B>db [DB]B> Get or set the Rose::DB-derived object stored in this cache entry.
<B>key [KEY]B> Get or set the cache key for this entry.
<B>prepared [BOOL]B> Get or set a boolean value indicating whether or not a cache entry is prepared. The interpretation of this flag is up to the Rose::DB::Cache-derived class that uses this entry class.
<B>is_preparedB> Returns true if prepared is true, false otherwise.

AUTHOR

John C. Siracusa (siracusa@gmail.com)

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ROSE::DB::CACHE::ENTRY (3) 2015-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.