coleslaw/static/coleslaw.lisp
2011-04-17 17:48:38 -04:00

19 lines
557 B
Common Lisp

(in-package :coleslaw)
(defun static-init ()
(setf *storage* (make-hash-table))
(loop for table in '(:authors :comments :posts :indices :credentials)
do (unless (gethash table *storage*)
(setf (gethash table *storage*) (make-hash-table)))))
(defmethod start-coleslaw (&rest options)
)
(defmethod stop-coleslaw (&rest options)
)
(defmethod get-credentials (name)
(gethash name (gethash :credentials *storage*)))
(defmethod set-credentials (name credentials)
(setf (gethash name (gethash :credentials *storage*)) credentials))