<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          supycachePython 緩存庫

          聯(lián)合創(chuàng)作 · 2023-09-29 06:03

          supycache 是 Python 對緩存的簡單封裝庫,支持包括內(nèi)存緩存、memcached 和 redis。

          示例代碼:

          import time
          import supycache
          
          @supycache.supycache(cache_key='result')
          def execute_expensive():
              time.sleep(15)
              return 42
          
          print execute_expensive()  # This will take 15 seconds to execute ...
          42
          print execute_expensive()  # ...not this tho', because the value is cached ...
          42
          print supycache.default_backend.get('result') # ..keyed as `result`
          42
          瀏覽 19
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  日韩精品视频在线 | 婷婷色五月激情综合网 | 国产香蕉9 | 秋霞福利视频 | 五月天婷婷丁香花开网 |