mirror of
https://github.com/ltcptgeneral/cs239-caching.git
synced 2025-09-09 00:37:22 +00:00
remove print statements from sieve, update gitignore, minor fix to test utils
This commit is contained in:
6
app/cache/eviction_sieve.py
vendored
6
app/cache/eviction_sieve.py
vendored
@@ -18,13 +18,13 @@ class SieveCache(Cache):
|
||||
self.hand = None
|
||||
|
||||
def print_cache_state(self):
|
||||
print("Current cache state:")
|
||||
#print("Current cache state:")
|
||||
node = self.head
|
||||
if not node:
|
||||
print("Cache is empty.")
|
||||
#print("Cache is empty.")
|
||||
return
|
||||
for _ in range(len(self.cache)):
|
||||
print(f"Key: {node.key}, Value: {node.value}, Visited: {node.visited}")
|
||||
#print(f"Key: {node.key}, Value: {node.value}, Visited: {node.visited}")
|
||||
node = node.next
|
||||
if node == self.head:
|
||||
break
|
||||
|
Reference in New Issue
Block a user