mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor speed up
This commit is contained in:
parent
efa99c4519
commit
cba387a0a0
|
@ -6,6 +6,7 @@ See the file 'doc/COPYING' for copying permission
|
|||
"""
|
||||
|
||||
import hashlib
|
||||
import os
|
||||
import sqlite3
|
||||
import threading
|
||||
import time
|
||||
|
@ -54,7 +55,7 @@ class HashDB(object):
|
|||
|
||||
def retrieve(self, key, unserialize=False):
|
||||
retVal = None
|
||||
if key:
|
||||
if key and (self._write_cache or os.path.isfile(self.filepath)):
|
||||
hash_ = HashDB.hashKey(key)
|
||||
retVal = self._write_cache.get(hash_, None)
|
||||
if not retVal:
|
||||
|
|
Loading…
Reference in New Issue
Block a user