|
Revision 2505, 1.3 kB
(checked in by fumiakiy, 18 months ago)
|
|
Purge stale search cache after it finishes processing, and also periodically. BugId:79999
|
-
Property svn:keywords set to
Id Date Author Revision
|
| Line | |
|---|
| 1 | # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. |
|---|
| 2 | # This program is distributed under the terms of the |
|---|
| 3 | # GNU General Public License, version 2. |
|---|
| 4 | # |
|---|
| 5 | # $Id$ |
|---|
| 6 | |
|---|
| 7 | package MT::Cache::Null; |
|---|
| 8 | |
|---|
| 9 | use strict; |
|---|
| 10 | |
|---|
| 11 | sub new { |
|---|
| 12 | my $class = shift; |
|---|
| 13 | my (%param) = @_; |
|---|
| 14 | my $self = bless \%param, $class; |
|---|
| 15 | return $self; |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | sub get { |
|---|
| 19 | my MT::Cache::Null $self = shift; |
|---|
| 20 | my ($key) = @_; |
|---|
| 21 | return; |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | sub get_multi { |
|---|
| 25 | my MT::Cache::Null $self = shift; |
|---|
| 26 | my @keys = @_; |
|---|
| 27 | return; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | sub delete { |
|---|
| 31 | my MT::Cache::Null $self = shift; |
|---|
| 32 | my ($key, $time) = @_; |
|---|
| 33 | return; |
|---|
| 34 | } |
|---|
| 35 | *remove = \&delete; |
|---|
| 36 | |
|---|
| 37 | sub add { |
|---|
| 38 | return; |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | sub replace { |
|---|
| 42 | return; |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | sub set { |
|---|
| 46 | return; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | sub _set { |
|---|
| 50 | my $cmdname = shift; |
|---|
| 51 | my MT::Cache::Null $self = shift; |
|---|
| 52 | my ($key, $val, $exptime) = @_; |
|---|
| 53 | return; |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | sub purge_stale { |
|---|
| 57 | my MT::Cache::Null $self = shift; |
|---|
| 58 | return; |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | sub flush_all { |
|---|
| 62 | my MT::Cache::Null $self = shift; |
|---|
| 63 | return; |
|---|
| 64 | } |
|---|
| 65 | |
|---|
| 66 | sub DESTROY {} |
|---|
| 67 | |
|---|
| 68 | 1; |
|---|
| 69 | __END__ |
|---|
| 70 | |
|---|
| 71 | =head1 NAME |
|---|
| 72 | |
|---|
| 73 | MT::Cache::Null - Null object compatible with the MT::Cache interface. |
|---|
| 74 | |
|---|
| 75 | =head1 DESCRIPTION |
|---|
| 76 | |
|---|
| 77 | I<MT::Cache::Null> provides interface to MT::Cache, but does absolutely |
|---|
| 78 | nothing. |
|---|
| 79 | |
|---|
| 80 | =head1 USAGE |
|---|
| 81 | |
|---|
| 82 | See POD of I<MT::Cache::Session> for details. |
|---|
| 83 | |
|---|
| 84 | =head1 AUTHOR & COPYRIGHT |
|---|
| 85 | |
|---|
| 86 | Please see L<MT/AUTHOR & COPYRIGHT>. |
|---|
| 87 | |
|---|
| 88 | =cut |
|---|
| 89 | |
|---|