Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Rocksdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
Python Rocksdb
Commits
6b54dc9e
Commit
6b54dc9e
authored
9 years ago
by
hofmockel
Browse files
Options
Downloads
Patches
Plain Diff
No need for the 'get_ob' methods on PyCache.
parent
167ee99f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rocksdb/_rocksdb.pyx
+0
-6
0 additions, 6 deletions
rocksdb/_rocksdb.pyx
with
0 additions
and
6 deletions
rocksdb/_rocksdb.pyx
+
0
−
6
View file @
6b54dc9e
...
@@ -432,9 +432,6 @@ cdef cpp_bool partial_merge_callback(
...
@@ -432,9 +432,6 @@ cdef cpp_bool partial_merge_callback(
#### Here comes the Cache stuff
#### Here comes the Cache stuff
@cython.internal
@cython.internal
cdef
class
PyCache
(
object
):
cdef
class
PyCache
(
object
):
cdef
object
get_ob
(
self
):
return
None
cdef
shared_ptr
[
cache
.
Cache
]
get_cache
(
self
):
cdef
shared_ptr
[
cache
.
Cache
]
get_cache
(
self
):
return
shared_ptr
[
cache
.
Cache
]()
return
shared_ptr
[
cache
.
Cache
]()
...
@@ -448,9 +445,6 @@ cdef class PyLRUCache(PyCache):
...
@@ -448,9 +445,6 @@ cdef class PyLRUCache(PyCache):
else
:
else
:
self
.
cache_ob
=
cache
.
NewLRUCache
(
capacity
)
self
.
cache_ob
=
cache
.
NewLRUCache
(
capacity
)
cdef
object
get_ob
(
self
):
return
self
cdef
shared_ptr
[
cache
.
Cache
]
get_cache
(
self
):
cdef
shared_ptr
[
cache
.
Cache
]
get_cache
(
self
):
return
self
.
cache_ob
return
self
.
cache_ob
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment