Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
erp5
Commits
d067ddf1
Commit
d067ddf1
authored
Dec 31, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline code documentation.
Docstrings are not to annotate what code is doing.
parent
94ebf52d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
product/ERP5Type/Tool/MemcachedTool.py
product/ERP5Type/Tool/MemcachedTool.py
+4
-16
No files found.
product/ERP5Type/Tool/MemcachedTool.py
View file @
d067ddf1
...
@@ -81,23 +81,11 @@ if memcache is not None:
...
@@ -81,23 +81,11 @@ if memcache is not None:
server_max_key_length
=
memcache
.
SERVER_MAX_KEY_LENGTH
,
server_max_key_length
=
memcache
.
SERVER_MAX_KEY_LENGTH
,
server_max_value_length
=
memcache
.
SERVER_MAX_VALUE_LENGTH
,
server_max_value_length
=
memcache
.
SERVER_MAX_VALUE_LENGTH
,
):
):
# connection cache with duration limited to transaction length.
"""
Initialise properties :
memcached_connection
Connection to memcached.
local_cache
Dictionnary used as a connection cache with duration limited to
transaction length.
scheduled_action_dict
Each key in this dictionary must be handled at transaction commit.
Value gives the action to take :
UPDATE_ACTION
Take value from local cache and send it to memcached.
DELETE_ACTION
Send a delete order to memcached.
"""
self
.
local_cache
=
{}
self
.
local_cache
=
{}
# Each key in scheduled_action_dict must be handled at commit.
# UPDATE_ACTION: send local_cache value to server
# DELETE_ACTION: delete on server
self
.
scheduled_action_dict
=
{}
self
.
scheduled_action_dict
=
{}
self
.
server_list
=
server_list
self
.
server_list
=
server_list
self
.
expiration_time
=
expiration_time
self
.
expiration_time
=
expiration_time
...
...
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