- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for PutRaw (0.78 seconds)
-
internal/store/queuestore.go
return Key{}, err } key := Key{ Name: uid.String(), Extension: store.fileExt, ItemCount: 1, } return key, store.write(key, item) } // PutRaw - puts the raw bytes to the store func (store *QueueStore[I]) PutRaw(b []byte) (Key, error) { store.Lock() defer store.Unlock() if uint64(len(store.entries)) >= store.entryLimit { return Key{}, errLimitExceeded }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.8K bytes - Click Count (0) -
internal/store/store.go
// Store - Used to persist items. type Store[I any] interface { Put(item I) (Key, error) PutMultiple(item []I) (Key, error) Get(key Key) (I, error) GetMultiple(key Key) ([]I, error) GetRaw(key Key) ([]byte, error) PutRaw(b []byte) (Key, error) Len() int List() []Key Del(key Key) error Open() error Delete() error } // Key denotes the key present in the store. type Key struct { Name string Compress bool
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.2K bytes - Click Count (0)