mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [Quest API] Add Time String to Seconds Method to Perl/Lua. # Perl - Add `quest::timetoseconds(time_string)`. # Lua - Add `eq.time_to_seconds(time_string)`. # Notes - Allows operators to use this method in place of hardcoded values like `3600`. * Remove unused method.
25 lines
597 B
C++
25 lines
597 B
C++
//
|
|
// Created by Akkadius on 7/7/18.
|
|
//
|
|
|
|
#ifndef EQEMU_DATABUCKET_H
|
|
#define EQEMU_DATABUCKET_H
|
|
|
|
|
|
#include <string>
|
|
#include "../common/types.h"
|
|
|
|
class DataBucket {
|
|
public:
|
|
static void SetData(std::string bucket_key, std::string bucket_value, std::string expires_time = "");
|
|
static bool DeleteData(std::string bucket_key);
|
|
static std::string GetData(std::string bucket_key);
|
|
static std::string GetDataExpires(std::string bucket_key);
|
|
static std::string GetDataRemaining(std::string bucket_key);
|
|
private:
|
|
static uint64 DoesBucketExist(std::string bucket_key);
|
|
};
|
|
|
|
|
|
#endif //EQEMU_DATABUCKET_H
|