Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0d7d05f4
Unverified
Commit
0d7d05f4
authored
Apr 16, 2025
by
Jee Jee Li
Committed by
GitHub
Apr 16, 2025
Browse files
[Misc] Modify LRUCache touch (#16689)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
96bb8aa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/utils.py
vllm/utils.py
+4
-1
No files found.
vllm/utils.py
View file @
0d7d05f4
...
@@ -316,7 +316,10 @@ class LRUCache(cachetools.LRUCache[_K, _V], Generic[_K, _V]):
...
@@ -316,7 +316,10 @@ class LRUCache(cachetools.LRUCache[_K, _V], Generic[_K, _V]):
return
info
return
info
def
touch
(
self
,
key
:
_K
)
->
None
:
def
touch
(
self
,
key
:
_K
)
->
None
:
self
.
_LRUCache__update
(
key
)
# type: ignore
try
:
self
.
_LRUCache__order
.
move_to_end
(
key
)
# type: ignore
except
KeyError
:
self
.
_LRUCache__order
[
key
]
=
None
# type: ignore
@
overload
@
overload
def
get
(
self
,
key
:
_K
,
/
)
->
Optional
[
_V
]:
def
get
(
self
,
key
:
_K
,
/
)
->
Optional
[
_V
]:
...
...
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