2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #ifndef GSSCONTEXTCACHE_H
9 #define GSSCONTEXTCACHE_H
14 #include "datamodel/GSSContext.h"
16 typedef std::map<std::string, GSSContext> ContextMap;
21 static GSSContextCache* instance();
22 std::string store(GSSContext &data, const std::string key = "");
23 GSSContext &retrieve(std::string key);
32 bool generateKey(std::string &key);
34 static GSSContextCache* _instance;
37 #endif // GSSCONTEXTCACHE_H