# -*-perl-*-

# $Id: Data.plm,v 1.1 2005/02/08 16:36:24 thomas Exp $

# $Log: Data.plm,v $
# Revision 1.1  2005/02/08 16:36:24  thomas
# Copy whole /Data subtree to db.
# Will someday replace Monitor
#


=head1 NAME

B<Data.pm> - Interface to Cache of B</Data> subtree

=head1 SYNOPSIS

  use What::Data;

  my $data = new What::Data (%opts);

  my $keys = $data->find ();   # Returns arrayref
  my $data = $data->find ($host);
  my $text = $data->lock ($host);
  my $ret = $data->unlock ();
  my $ret = $data->set ($host, $text);
  my $ret = $data->drop ($host);

  my $ret = $data->close(%opts);

=head1 DESCRIPTION

This module supports querying and setting data for the db-based cache
of the B</Data> subtree for all hosts.

=cut

use strict;

package What::Data;

use base qw(What::MultiData);


###############################################################################

=head1 SEE ALSO

What::AllHosts::Data(3)
What::MultiData(3)

=cut

###############################################################################

1;
