MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / new

Method new

redis-server/src/codec.rs:56–61  ·  view source on GitHub ↗
(cache: Arc<CacheT>)

Source from the content-addressed store, hash-verified

54
55impl RedisCodec {
56 pub fn new(cache: Arc<CacheT>) -> Self {
57 RedisCodec {
58 cache,
59 d_state: DecodeState::Cmd,
60 }
61 }
62
63 fn decode_cmd(&mut self, buf: &mut BytesMut) -> Result<Option<RedisClientMsg>, io::Error> {
64 trace!("cap: {}: len: {}", buf.capacity(), buf.len());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected