Example #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
                );
        }
Example #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
                );
        }
Example #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
                );
        }
Example #4
0
        public bool IsCharacterMigrate(int id)
        {
            var key = CenterKeys.GetMigrateKey(id);

            return(m_db.KeyExists(key));
        }
Example #5
0
        public void RemoveCharacterOnline(int id)
        {
            var key = CenterKeys.GetCharacterKey(id);

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

            return(m_db.KeyExists(key));
        }
Example #7
0
        public void RemoveAccountOnline(int id)
        {
            var key = CenterKeys.GetAccountKey(id);

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

            return(m_db.KeyExists(key));
        }