~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_cache.h

  • Committer: Stewart Smith
  • Date: 2009-10-08 12:39:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: stewart@flamingspork.com-20091008123927-qpf9hog04w4xc5aj
make directory_file_name() static to mysys/my_lib.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
1
/*
 
2
 -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
3
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
 
4
 
4
5
 *  Definitions required for Query Cache plugin
5
 
 *
 
6
 
6
7
 *  Copyright (C) 2008 Sun Microsystems, Toru Maesaka
7
8
 *
8
9
 *  This program is free software; you can redistribute it and/or modify
22
23
#ifndef DRIZZLED_PLUGIN_QUERY_CACHE_H
23
24
#define DRIZZLED_PLUGIN_QUERY_CACHE_H
24
25
 
25
 
#include "drizzled/plugin/plugin.h"
26
 
 
27
26
namespace drizzled
28
27
{
29
 
class Session;
30
 
 
31
28
namespace plugin
32
29
{
33
30
 
40
37
    false = success
41
38
    true  = failure
42
39
*/
43
 
class QueryCache : public Plugin
 
40
class QueryCache
44
41
{
45
 
  QueryCache();
46
 
  QueryCache(const QueryCache &);
47
 
  QueryCache& operator=(const QueryCache &);
 
42
  std::string name;
48
43
public:
49
 
  explicit QueryCache(std::string name_arg)
50
 
    : Plugin(name_arg, "QueryCache")
51
 
  {}
 
44
  QueryCache(std::string name_arg): name(name_arg) {}
 
45
  QueryCache(const char *name_arg): name(name_arg) {}
 
46
 
 
47
  std::string getName() { return name; }
52
48
 
53
49
  virtual ~QueryCache() {}
54
50
  /* Lookup the cache and transmit the data back to the client */