newStore: accept collectNum and expiration time.
Prevoiusly, Expiration and CollectNum were hard-coded into store.go. This change moves these constants to captcha.go (renaming to Std*), and makes newStore accept them as arguments. This will enable setting these paraments by package users sometime in the future, if needed, and also allows testing of the store garbage collection.
parent
9de0d066
Please register or sign in to comment