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

Method LPushUsage

internal/home/client.go:867–876  ·  view source on GitHub ↗
(ctx context.Context, payload []byte)

Source from the content-addressed store, hash-verified

865}
866
867func (c *Client) LPushUsage(ctx context.Context, payload []byte) error {
868 cmd, errClient := c.commandClient()
869 if errClient != nil {
870 return errClient
871 }
872 if len(payload) == 0 {
873 return nil
874 }
875 return cmd.LPush(ctx, redisKeyUsage, payload).Err()
876}
877
878func (c *Client) RPushRequestLog(ctx context.Context, payload []byte) error {
879 cmd, errClient := c.commandClient()

Callers 1

Calls 1

commandClientMethod · 0.95

Tested by

no test coverage detected