Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (27 sloc) 0.99 kb
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef EP_EXTENSION_H
#define EP_EXTENSION_H 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ep.hh"
#include <memcached/extension.h>
extern "C" {
typedef ENGINE_ERROR_CODE (*RESPONSE_HANDLER_T)(const void *, int , const char *);
}
/**
* Protocol extensions to support item locking.
*/
class GetlExtension: public EXTENSION_ASCII_PROTOCOL_DESCRIPTOR {
public:
GetlExtension(EventuallyPersistentStore *kvstore, GET_SERVER_API get_server_api);
void initialize();
ENGINE_ERROR_CODE executeGetl(int argc, token_t *argv, void *cookie,
RESPONSE_HANDLER_T response_handler);
ENGINE_ERROR_CODE executeUnl(int argc, token_t *argv, void *cookie,
RESPONSE_HANDLER_T response_handler);
private:
SERVER_HANDLE_V1 *serverApi;
EventuallyPersistentStore *backend;
};
#endif /* EP_EXTENSION_H */
Jump to Line
Something went wrong with that request. Please try again.