Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
2e874eb7
Commit
2e874eb7
authored
Dec 31, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document parameters.
parent
bce61f05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
product/ERP5Type/Tool/MemcachedTool.py
product/ERP5Type/Tool/MemcachedTool.py
+16
-0
No files found.
product/ERP5Type/Tool/MemcachedTool.py
View file @
2e874eb7
...
@@ -81,6 +81,22 @@ if memcache is not None:
...
@@ -81,6 +81,22 @@ 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
,
):
):
"""
server_list (tuple of strings)
Servers to connect to, in 'host:port' format.
expiration_time (int)
Entry expiration time. See "Expiration times" in memcache protocol
spec. Summary:
0 = never
less than 60*60*24*30 = time starting at entry creation/update
more = absolute unix timestamp
server_max_key_length (int)
Maximum key length. Storing larger keys will cause an exception to be
raised.
server_max_value_length (int)
Maximum value length. Storing larger values will cause an exception to
be raised.
"""
# connection cache with duration limited to transaction length.
# connection cache with duration limited to transaction length.
self
.
local_cache
=
{}
self
.
local_cache
=
{}
# Each key in scheduled_action_dict must be handled at commit.
# Each key in scheduled_action_dict must be handled at commit.
...
...
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