- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for PutRaw (0.07 sec)
-
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 }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (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
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 4.2K bytes - Viewed (0)