root/branches/release-39/lib/MT/Cache/Null.pm @ 2505

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
7package MT::Cache::Null;
8
9use strict;
10
11sub new {
12    my $class = shift;
13    my (%param) = @_;
14    my $self = bless \%param, $class;
15    return $self;
16}
17
18sub get {
19    my MT::Cache::Null $self = shift;
20    my ($key) = @_;
21    return;
22}
23
24sub get_multi {
25    my MT::Cache::Null $self = shift;
26    my @keys = @_;
27    return;
28}
29
30sub delete {
31    my MT::Cache::Null $self = shift;
32    my ($key, $time) = @_;
33    return;
34}
35*remove = \&delete;
36
37sub add {
38    return;
39}
40
41sub replace {
42    return;
43}
44
45sub set {
46    return;
47}
48
49sub _set {
50    my $cmdname = shift;
51    my MT::Cache::Null $self = shift;
52    my ($key, $val, $exptime) = @_;
53    return;
54}
55
56sub purge_stale {
57    my MT::Cache::Null $self = shift;
58    return;
59}
60
61sub flush_all {
62    my MT::Cache::Null $self = shift;
63    return;
64}
65
66sub DESTROY {}
67
681;
69__END__
70
71=head1 NAME
72
73MT::Cache::Null - Null object compatible with the MT::Cache interface.
74
75=head1 DESCRIPTION
76
77I<MT::Cache::Null> provides interface to MT::Cache, but does absolutely
78nothing.
79
80=head1 USAGE
81
82See POD of I<MT::Cache::Session> for details.
83
84=head1 AUTHOR & COPYRIGHT
85
86Please see L<MT/AUTHOR & COPYRIGHT>.
87
88=cut
89
Note: See TracBrowser for help on using the browser.