MCPcopy
hub / github.com/joeferner/redis-commander / removeXSetElement

Function removeXSetElement

web/static/scripts/redisCommander.js:1128–1146  ·  view source on GitHub ↗
(connectionId, key, timestamp)

Source from the content-addressed store, hash-verified

1126}
1127
1128function removeXSetElement (connectionId, key, timestamp) {
1129 $.ajax({
1130 url: 'apiv2/xset/member',
1131 method: 'DELETE',
1132 data: {
1133 connectionId: connectionId,
1134 key: key,
1135 timestamp: timestamp
1136 }
1137 }).done(function(data, status) {
1138 console.log('entry at timestamp ' + timestamp + ' deleted');
1139 refreshTree();
1140 getKeyTree().select_node(0);
1141 })
1142 .fail(function(err) {
1143 console.log('delete stream entry error', arguments);
1144 alert('Could not delete stream member at timestamp ' + timestamp + ': ' + err.statusText);
1145 });
1146}
1147
1148var redisCli = {
1149 commandLineScrollTop: 0,

Callers

nothing calls this directly

Calls 2

refreshTreeFunction · 0.85
getKeyTreeFunction · 0.85

Tested by

no test coverage detected