mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 22:56:37 +00:00
Make it so DataBuckets set_data can take time formats such as 1s, 1m, 1d, 1y
This commit is contained in:
+2
-1
@@ -11,11 +11,12 @@
|
||||
|
||||
class DataBucket {
|
||||
public:
|
||||
static void SetData(std::string bucket_key, std::string bucket_value, uint32 expires_at_unix = 0);
|
||||
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);
|
||||
private:
|
||||
static uint64 DoesBucketExist(std::string bucket_key);
|
||||
static uint32 ParseStringTimeToInt(std::string time_string);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user