aboutsummaryrefslogtreecommitdiff
path: root/src/script/scripting_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/scripting_server.h')
0 files changed, 0 insertions, 0 deletions
om">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef DATABASE_REDIS_HEADER #define DATABASE_REDIS_HEADER #include "config.h" #if USE_REDIS #include "database.h" #include <hiredis.h> #include <string> class Settings; class Database_Redis : public Database { public: Database_Redis(Settings &conf); ~Database_Redis(); virtual void beginSave(); virtual void endSave(); virtual bool saveBlock(const v3s16 &pos, const std::string &data); virtual std::string loadBlock(const v3s16 &pos); virtual bool deleteBlock(const v3s16 &pos); virtual void listAllLoadableBlocks(std::vector<v3s16> &dst); private: redisContext *ctx; std::string hash; }; #endif // USE_REDIS #endif