MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / popRedisQueueItems

Function popRedisQueueItems

internal/api/redis_queue_protocol.go:239–246  ·  view source on GitHub ↗
(channel string, count int)

Source from the content-addressed store, hash-verified

237}
238
239func popRedisQueueItems(channel string, count int) ([][]byte, bool) {
240 switch strings.ToLower(strings.TrimSpace(channel)) {
241 case redisUsageChannel:
242 return redisqueue.PopOldest(count), true
243 default:
244 return nil, false
245 }
246}
247
248func (s *Server) streamRedisSubscription(reader *bufio.Reader, writer *bufio.Writer, channel string, messages <-chan []byte, unsubscribe func()) {
249 if unsubscribe == nil {

Callers 1

handleRedisConnectionMethod · 0.85

Calls 1

PopOldestFunction · 0.92

Tested by

no test coverage detected