Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lancet
/
kvcache
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
abb0698b
authored
Aug 25, 2019
by
lancet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
da84fa58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vault/data.go
+3
-2
No files found.
vault/data.go
View file @
abb0698b
...
...
@@ -9,6 +9,7 @@ type Message struct {
Value
string
Action
string
Error
bool
Reply
chan
Message
}
// node - узел данных для очереди устаревания
...
...
@@ -24,7 +25,7 @@ type node struct {
type
store
struct
{
exchange
chan
Message
// Небуферизованный канал для синхронизации доступа
ttl
time
.
Duration
// Время жизни узла
head
*
node
tail
*
node
head
*
node
// Голова, выходит первым
tail
*
node
// Добавлен последним
flat
map
[
string
]
*
node
// Карта для быстрого доступа к значениям
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment