Documentation ¶
Overview ¶
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func StoreConstructor(config map[string]interface{}) (store.KVStore, error)
- type InMemBatch
- type InMemIterator
- func (i *InMemIterator) Close()
- func (i *InMemIterator) Current() ([]byte, []byte, bool)
- func (i *InMemIterator) Key() []byte
- func (i *InMemIterator) Next()
- func (i *InMemIterator) Seek(k []byte)
- func (i *InMemIterator) SeekFirst()
- func (i *InMemIterator) Valid() bool
- func (i *InMemIterator) Value() []byte
- type InMemStore
- func (i *InMemStore) Close() error
- func (i *InMemStore) Commit() error
- func (i *InMemStore) Delete(key []byte) error
- func (i *InMemStore) Get(key []byte) ([]byte, error)
- func (i *InMemStore) Iterator(key []byte) store.KVIterator
- func (i *InMemStore) NewBatch() store.KVBatch
- func (i *InMemStore) Set(key, val []byte) error
Constants ¶
const Name = "mem"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InMemBatch ¶
type InMemBatch struct {
// contains filtered or unexported fields
}
func (*InMemBatch) Close ¶
func (i *InMemBatch) Close() error
func (*InMemBatch) Delete ¶
func (i *InMemBatch) Delete(key []byte)
func (*InMemBatch) Execute ¶
func (i *InMemBatch) Execute() error
func (*InMemBatch) Set ¶
func (i *InMemBatch) Set(key, val []byte)
type InMemIterator ¶
type InMemIterator struct {
// contains filtered or unexported fields
}
func (*InMemIterator) Close ¶
func (i *InMemIterator) Close()
func (*InMemIterator) Key ¶
func (i *InMemIterator) Key() []byte
func (*InMemIterator) Next ¶
func (i *InMemIterator) Next()
func (*InMemIterator) Seek ¶
func (i *InMemIterator) Seek(k []byte)
func (*InMemIterator) SeekFirst ¶
func (i *InMemIterator) SeekFirst()
func (*InMemIterator) Valid ¶
func (i *InMemIterator) Valid() bool
func (*InMemIterator) Value ¶
func (i *InMemIterator) Value() []byte
type InMemStore ¶
type InMemStore struct {
// contains filtered or unexported fields
}
func MustOpen ¶
func MustOpen() *InMemStore
func Open ¶
func Open() (*InMemStore, error)
func (*InMemStore) Close ¶
func (i *InMemStore) Close() error
func (*InMemStore) Commit ¶
func (i *InMemStore) Commit() error
func (*InMemStore) Delete ¶
func (i *InMemStore) Delete(key []byte) error
func (*InMemStore) Iterator ¶
func (i *InMemStore) Iterator(key []byte) store.KVIterator
func (*InMemStore) NewBatch ¶
func (i *InMemStore) NewBatch() store.KVBatch
func (*InMemStore) Set ¶
func (i *InMemStore) Set(key, val []byte) error