Пример #1
0
        public void AddCharacterOnline(int id)
        {
            if (IsCharacterOnline(id))
            {
                return;
            }

            var key = CenterKeys.GetCharacterKey(id);

            m_db.StringSet(
                key,
                "",
                when: When.Always,
                flags: CommandFlags.FireAndForget
                );
        }
Пример #2
0
        public void AddAccountOnline(int id)
        {
            var key = CenterKeys.GetAccountKey(id);

            if (IsAccountOnline(id))
            {
                return;
            }

            m_db.StringSet(
                key,
                "",
                when: When.Always,
                flags: CommandFlags.FireAndForget
                );
        }
Пример #3
0
        public void AddCharacterCSITC(int id)
        {
            if (IsCharacterCSITC(id))
            {
                return;
            }

            var key = CenterKeys.GetCSITCKey(id);

            m_db.StringSet(
                key,
                "",
                expiry: MigrateExpiry,
                when: When.Always,
                flags: CommandFlags.FireAndForget
                );
        }
Пример #4
0
        public bool IsCharacterMigrate(int id)
        {
            var key = CenterKeys.GetMigrateKey(id);

            return(m_db.KeyExists(key));
        }
Пример #5
0
        public void RemoveCharacterOnline(int id)
        {
            var key = CenterKeys.GetCharacterKey(id);

            m_db.KeyDelete(key, CommandFlags.FireAndForget);
        }
Пример #6
0
        public bool IsCharacterOnline(int id)
        {
            var key = CenterKeys.GetCharacterKey(id);

            return(m_db.KeyExists(key));
        }
Пример #7
0
        public void RemoveAccountOnline(int id)
        {
            var key = CenterKeys.GetAccountKey(id);

            m_db.KeyDelete(key, CommandFlags.FireAndForget);
        }
Пример #8
0
        public bool IsAccountOnline(int id)
        {
            var key = CenterKeys.GetAccountKey(id);

            return(m_db.KeyExists(key));
        }