Sman::Man::Cache - 'Virtual base class' for converted manpages cache


Sman documentation Contained in the Sman distribution.

Index


Code Index:

NAME

Top

Sman::Man::Cache - 'Virtual base class' for converted manpages cache

SYNOPSIS

Top

  This module provides an interface for subclasses, namely,
  Sman::Man::Cache::DB_File and Sman::Man::Cache::FileCache

DESCRIPTION

Top

  This module provides an interface for subclasses, namely,
  Sman::Man::Cache::DB_File and Sman::Man::Cache::FileCache

AUTHOR

Top

Josh Rabinowitz <joshr>

SEE ALSO

Top

sman-update, Sman::Man::Convert, Sman::Man::Cache::FileCache, sman.conf


Sman documentation Contained in the Sman distribution.

package Sman::Man::Cache; # has two subclasses:

#$Id: Cache.pm,v 1.4 2005/08/26 21:40:23 joshr Exp $

use fields qw( none );

sub new {
   my Sman::Man::Cache $self = shift;
   unless (ref $self) {
	   $self = fields::new($self);
	   #$self->{_Foo_private} = "this is Foo's secret";
   }
   #$self->{foo} = 10;
   #$self->{bar} = 20;
   return $self;
}

#sub new {
#	my $proto = shift;
#	my $class = ref($proto) || $proto;
#	my $self  = {};
#	bless ($self, $class);
#	return $self;
#}

sub get {
	die "Must use subclass of __PACKAGE__";
}
sub set {
	die "Must use subclass of __PACKAGE__";
}

#package Sman::Man::Cache::FileCache;
#use fields qw( filecache ); 
# not needed
# this uses Cache::FileCache

1;