#include <database-redis.h>
Inheritance diagram for Database_Redis:
Collaboration diagram for Database_Redis:Public Member Functions | |
| Database_Redis (Settings &conf) | |
| ~Database_Redis () | |
| void | beginSave () |
| void | endSave () |
| bool | saveBlock (const v3s16 &pos, std::string_view data) |
| void | loadBlock (const v3s16 &pos, std::string *block) |
| bool | deleteBlock (const v3s16 &pos) |
| void | listAllLoadableBlocks (std::vector< v3s16 > &dst) |
Public Member Functions inherited from MapDatabase | |
| virtual | ~MapDatabase ()=default |
Public Member Functions inherited from Database | |
| virtual bool | initialized () const |
Private Attributes | |
| redisContext * | ctx = nullptr |
| std::string | hash = "" |
Additional Inherited Members | |
Static Public Member Functions inherited from MapDatabase | |
| static s64 | getBlockAsInteger (const v3s16 &pos) |
| static v3s16 | getIntegerAsBlock (s64 i) |
| Database_Redis::Database_Redis | ( | Settings & | conf | ) |
References ctx, dstream, Settings::exists(), Settings::get(), Settings::getU16(), and hash.
Here is the call graph for this function:| Database_Redis::~Database_Redis | ( | ) |
References ctx.
|
virtual |
Implements MapDatabase.
References ctx, MapDatabase::getBlockAsInteger(), hash, i64tos(), and warningstream.
Here is the call graph for this function:
|
virtual |
Implements MapDatabase.
References ctx, MapDatabase::getIntegerAsBlock(), hash, and stoi64().
Here is the call graph for this function:
|
virtual |
Implements MapDatabase.
References ctx, errorstream, MapDatabase::getBlockAsInteger(), hash, and i64tos().
Here is the call graph for this function:
|
virtual |
Implements MapDatabase.
References ctx, MapDatabase::getBlockAsInteger(), hash, i64tos(), and warningstream.
Here is the call graph for this function:
|
private |
Referenced by Database_Redis(), ~Database_Redis(), beginSave(), deleteBlock(), endSave(), listAllLoadableBlocks(), loadBlock(), and saveBlock().
|
private |
Referenced by Database_Redis(), deleteBlock(), listAllLoadableBlocks(), loadBlock(), and saveBlock().