Wycademy/src/Wycademy/Commands/Services/CommandCacheService.cs
/// <summary>
/// Adds a new value to an existing key, or adds a new key:value set if it doesn't exist. Attempting to add a value that is already associated with the key will silently fail.
/// </summary>
/// <param name="key">The key to add or update.</param>
/// <param name="value">The value to insert.</param>
Adds a new value to an existing key, or adds a new key:value set if it doesn't exist. Attempting to add a value that is already associated with the key will silently fail.
Adds a new value to an existing key or adds a new key : value set if it doesn ' t exist . Attempting to add a value that is already associated with the key will silently fail .
public void Add(ulong key, ulong value)
        {
            if (ContainsKey(key))
            {
                _cache[key].Add(value);
            }
            else
            {
                Add(key, new HashSet<ulong>() { value });
            }
        }
public void Add ( ulong key , ulong value ) { if ( ContainsKey ( key ) ) { _cache [ key ] . Add ( value ) ; } else { Add ( key , new HashSet < ulong > ( ) { value } ) ; } }
Adds a new value to an existing key, or adds a new key:value set if it doesn't exist.
Adds a new value to an existing key or adds a new key : value set if it doesn ' t exist .
key
ulong
The key to add or update.
The key to add or update .
value
ulong
The value to insert.
The value to insert .