| 1 | |||
| 2 | package Apache2::ASP::CacheManager; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings 'all'; | ||
| 6 | use Digest::MD5 'md5_hex'; | ||
| 7 | use Storable qw( freeze thaw ); | ||
| 8 | use HTTP::Date qw( time2iso str2time ); | ||
| 9 | |||
| 10 | |||
| 11 | #============================================================================== | ||
| 12 | sub new | ||
| 13 | { | ||
| 14 | my ($class, %args) = @_; | ||
| 15 | |||
| 16 | return bless \%args, $class; | ||
| 17 | }# end new() | ||
| 18 | |||
| 19 | |||
| 20 | #============================================================================== | ||
| 21 | sub context | ||
| 22 | { | ||
| 23 | Apache2::ASP::HTTPContext->current; | ||
| 24 | }# end context() | ||
| 25 | |||
| 26 | |||
| 27 | #============================================================================== | ||
| 28 | sub dbh | ||
| 29 | { | ||
| 30 | my $s = shift; | ||
| 31 | |||
| 32 | $s->context->application->db_Applications; | ||
| 33 | }# end dbh() | ||
| 34 | |||
| 35 | |||
| 36 | #============================================================================== | ||
| 37 | sub create | ||
| 38 | { | ||
| 39 | |||
| 40 | }# end create() | ||
| 41 | |||
| 42 | |||
| 43 | #============================================================================== | ||
| 44 | sub retrieve | ||
| 45 | { | ||
| 46 | |||
| 47 | }# end retrieve() | ||
| 48 | |||
| 49 | |||
| 50 | #============================================================================== | ||
| 51 | sub verify_cache_id | ||
| 52 | { | ||
| 53 | |||
| 54 | }# end verify_cache_id() | ||
| 55 | |||
| 56 | |||
| 57 | 1;# return true: | ||
| 58 |