Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
5fce97e6
Commit
5fce97e6
authored
Mar 12, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5c46bf8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
go/zodb/connection.go
go/zodb/connection.go
+10
-10
No files found.
go/zodb/connection.go
View file @
5fce97e6
...
...
@@ -70,7 +70,7 @@ type LiveCache struct {
// pinned objects. may have referees.
pinned
map
[
Oid
]
IPersistent
// not pinned objects. may have referees. cache keeps weak reference
to an object
.
// not pinned objects. may have referees. cache keeps weak reference
s to objects
.
//
// rationale for using weakref:
//
...
...
@@ -149,20 +149,20 @@ const (
//
// Note: object's state can still be discarded and the object can go
// into ghost state. Use PCacheKeepState to prevent such automatic
// state eviction until
discard is really need
ed.
// state eviction until
state discard is semantically requir
ed.
PCachePinObject
PCachePolicy
=
1
<<
iota
// don't keep object in the cache.
//
// The object will be discarded from the cache completely as soon as it
// is semantically valid to do so.
PCacheDiscardObject
PCacheOmitObject
PCacheDropObject
// keep object state in the cache.
//
// Object's state is kept XXX ...
// Note: object can go awai (PCachePinObject)
// This prevents object state to go away when !dirty object is no
// longer used. However the object itself can go away unless it is
// pinned into cache via PCachePinObject.
//
// Note: on invalidation, state of invalidated objects is discarded
// unconditionally.
...
...
@@ -170,10 +170,10 @@ const (
// don't keep object state.
//
// Data access is
non-temporal. Object's state is used once and then
//
won't be used for a long time. Don't pollute cache with state of
// this object.
PCache
Omit
State
// Data access is
likely non-temporal and object's state will be used
//
once and then won't be used for a long time. Don't pollute cache
//
with state of
this object.
PCache
Drop
State
)
// ----------------------------------------
...
...
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