diff options
| author | alex <[email protected]> | 2026-07-12 15:00:16 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-12 15:00:16 +0200 |
| commit | 6cb3313793bf45e197b3048f0abd2f600bf97bb5 (patch) | |
| tree | 019a0995c7f9422ec9d739c77379ee7cc1a96b9c /pkg/commands/session.go | |
| parent | ce9d9f8b2183bc0a31bfa40e780ae07182bc7cf8 (diff) | |
| download | redis-clone-multi/execute.tar.xz redis-clone-multi/execute.zip | |
multi exec and discardmulti/execute
Diffstat (limited to 'pkg/commands/session.go')
| -rw-r--r-- | pkg/commands/session.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/commands/session.go b/pkg/commands/session.go new file mode 100644 index 0000000..e7a39fe --- /dev/null +++ b/pkg/commands/session.go @@ -0,0 +1,18 @@ +package commands + +type ClientSession struct{ + Queue [][]string + InTransaction bool +} + +func NewClientSession() *ClientSession { + return &ClientSession{ + InTransaction: false, + Queue: make([][]string, 0), + } +} + +func (s *ClientSession) Reset() { + s.InTransaction = false + s.Queue = nil +}
\ No newline at end of file |
