about summary refs log tree commit diff stats
path: root/src/loader/loaderhandle.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/loaderhandle.nim')
-rw-r--r--src/loader/loaderhandle.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/loader/loaderhandle.nim b/src/loader/loaderhandle.nim
index b43149fb..4813d55d 100644
--- a/src/loader/loaderhandle.nim
+++ b/src/loader/loaderhandle.nim
@@ -17,6 +17,12 @@ type
     page*: ptr UncheckedArray[uint8]
     len*: int
 
+  CachedItem* = ref object
+    id*: int
+    refc*: int
+    offset*: int
+    path*: string
+
   LoaderBuffer* = ref LoaderBufferObj
 
   LoaderHandle* = ref object of RootObj
@@ -28,6 +34,7 @@ type
   InputHandle* = ref object of LoaderHandle
     outputs*: seq[OutputHandle] # list of outputs to be streamed into
     cacheId*: int # if cached, our ID in a client cacheMap
+    cacheRef*: CachedItem # if this is a tocache handle, a ref to our cache item
     parser*: HeaderParser # only exists for CGI handles
     rstate: ResponseState # track response state