Skip to content

Row lock mechanism for cassandra, based on lightweight transactions

License

Notifications You must be signed in to change notification settings

jroimartin/caslock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CasLock GoDoc

Description

Package caslock implements a row lock mechanism for cassandra, based on lightweight transactions. It allows to lock an arbitrary number of rows, protecting them from concurrent access.

Usage

l, err := caslock.Acquire(session, "keyspace", "table",
	30 * time.Second, "rowKey1", "rowKey2")
if err != nil {
	return err
}
defer l.Release()

Installation

go get github.com/jroimartin/caslock

More information

godoc github.com/jroimartin/caslock

About

Row lock mechanism for cassandra, based on lightweight transactions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages