Remove() public static méthode

Removes a session store item from the bucket
public static Remove ( IBucket bucket, string id ) : void
bucket IBucket Bucket to remove from
id string Session ID
Résultat void
        public override void RemoveItem(HttpContext context, string id, object lockId, SessionStateStoreData item)
        {
            var tmp = (ulong)lockId;
            var e   = SessionStateItem.Load(_client, id, true, _compressor, _isLoggingEnabled ? _logger : null);

            if (e != null && e.LockId == tmp)
            {
                SessionStateItem.Remove(_client, id);
            }
        }
        public override void RemoveItem(HttpContext context, string id, object lockId, SessionStateStoreData item)
        {
            var tmp = (ulong)lockId;
            var e   = SessionStateItem.Load(client, id, true);

            if (e != null && e.LockId == tmp)
            {
                SessionStateItem.Remove(client, id);
            }
        }