Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PutRaw (0.03 sec)

  1. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top