File: cache.pxd

package info (click to toggle)
python-rocksdb 0.8.0~rc3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 480 kB
  • sloc: python: 798; cpp: 408; makefile: 158
file content (8 lines) | stat: -rw-r--r-- 245 bytes parent folder | download
1
2
3
4
5
6
7
8
from .std_memory cimport shared_ptr

cdef extern from "rocksdb/cache.h" namespace "rocksdb":
    cdef cppclass Cache:
        pass

    cdef extern shared_ptr[Cache] NewLRUCache(size_t)
    cdef extern shared_ptr[Cache] NewLRUCache(size_t, int)