Commit Graph

85 Commits

Author SHA1 Message Date
John Crepezzi 4cac6713ef Fix memcached client fetch for key not found
The memcached client wasn't correctly handling looking up a key that
didn't exist.  Now we only try to push the expiration forward if there
is actually a value in memcached.

Also while I'm in here, allow expiration to be left blank.
2020-10-06 01:36:46 -04:00
Jacob Parker b4c666fbcf Add an Amazon S3 document store 2019-06-28 19:25:49 +01:00
John Crepezzi f3838ab4a8
Merge pull request #251 from seejohnrun/handle-redis-disconnect
Handle redis error and re-establish connection
2018-09-19 10:38:34 -04:00
John Crepezzi bf2b1c957a Handle redis error and re-establish connection 2018-09-19 10:37:34 -04:00
John Crepezzi b087ac8dd1 Added charset to raw content type
Closes #230
2018-07-12 14:25:27 -04:00
Jacob Gunther 5f6fefa7a6
Fixed unnecessary logging when document not found 2018-04-30 16:40:28 -05:00
Jacob Gunther cd3bf26dbe
Use local method for md5 2018-04-16 10:52:53 -05:00
Jacob Gunther 830dc1bc43 Use uploads table 2018-04-15 23:16:39 -05:00
Jacob Gunther dc0f151a7f Fixed bug in RethinkDB document store and use classes 2018-04-15 23:16:08 -05:00
John Crepezzi 827e7b51b5 Rewrite the memcached client
* Update syntax to ES6
* Use `memcached` instead of `memcache`
* Fix restrictions where expirations weren't pushed forward on GET
* Fix a bug where we were unnecessarily bumping expirations on key search

Closes #201
2018-02-16 09:52:44 -05:00
Jacob Gunther ff0fccd6c2
Oh noes! I didn't even notice that I had a typo... 2017-12-11 09:50:50 -06:00
Jacob Gunther cdd0cf3739
Fixed requested changes to RethinkDB handler 2017-12-11 09:27:44 -06:00
PassTheMayo ba5c6b8d16 Added RethinkDB storage option & fixed config to use proper JSON 2017-12-09 18:34:00 -06:00
John Crepezzi 3b6934e348 Phonetic key generator to es6 and add some tests 2017-10-31 21:10:25 -04:00
John Crepezzi f161cc33b4 Added tests and converted dictionary key generator to es6 2017-10-31 20:55:59 -04:00
John Crepezzi e4e025f67e Convert random generator to es6 and add some specs for it directly 2017-10-31 20:40:43 -04:00
John Crepezzi 5939dec185 Added eslint and fixed an issue from #158 2017-06-26 12:19:36 -04:00
John Crepezzi 87b1c76aaf One more 2017-06-26 12:11:19 -04:00
John Crepezzi 4599203bdf A few style nit-picks 2017-06-26 12:10:57 -04:00
Klas af Geijerstam d66bc9a6c4 Removed unused lines 2017-06-26 18:09:13 +02:00
Klas af Geijerstam 80f0618736 Updated dictionary.js
Now expects a newline separated dictionary, supports both \n and \n\r
2017-06-26 18:03:18 +02:00
Klas af Geijerstam ac2bceefbb Added missing ) 2017-06-26 17:42:24 +02:00
Klas af Geijerstam dbf4f6b5dd Removed usage of random-js
Replaced random-js with vanilla JS random
2017-06-26 17:39:32 +02:00
Klas af Geijerstam 8e9205cecc Update dictionary.js 2017-06-26 17:37:04 +02:00
Klas af Geijerstam e54a860172 Added dictionary.js
A key generator that uses a dictionary to create its keys
2017-06-26 17:17:52 +02:00
John Crepezzi 45e19bc7cc fix indentation 2015-12-27 12:59:59 -05:00
Arun Babu Neelicattu c92ab077c0 Support authentication for redis store if password provided 2014-11-21 23:17:19 +10:00
lidl a8d4f3c300 Make table creation comment a one-liner. 2014-06-27 18:40:05 -04:00
John Crepezzi ab029eae2f Added postgres adapter 2014-06-09 16:50:43 -04:00
John Crepezzi 447d0aae76 PG basis 2014-06-09 14:48:35 -04:00
John Crepezzi 4870158430 Merge branch 'master' of github.com:seejohnrun/haste-server 2014-04-21 14:17:09 -04:00
John Crepezzi 0471b059a0 Support a form-data POST API
Closes #54
2014-04-21 14:16:23 -04:00
JonApps bda2749879 oops 🍺 2014-03-25 02:23:31 +01:00
JonApps 028aa96b13 phonetic keys can begin with vowel + added missing \'z\' to consontants 2014-03-25 02:20:05 +01:00
John Crepezzi 89909747f1 Don't depend on err.message for redis errors [#49] 2013-11-24 11:54:01 -05:00
John Crepezzi 4b58c8d356 Added more loggin 2012-09-27 11:50:56 -04:00
John Crepezzi 93a83a35da Logging 2012-09-27 11:47:23 -04:00
John Crepezzi 4efc5d47d9 Allow redistogo 2012-09-27 11:46:53 -04:00
John Crepezzi 13bb094fb3 Revert "Refactor frontend"
This reverts commit 1950cc8db0.
2012-03-19 18:17:39 -04:00
Michael Macias 1950cc8db0 Refactor frontend
* restructured JavaScript using backbone.js
* replaced highlight.js with CodeMirror for its editor
* added CodeMirror Solarized (dark) theme based on Ethan Schoonover's solarized.vim
* changed `POST /document` to accept real JSON
* cleaned up template and stylesheet
2012-02-18 02:40:56 -06:00
John Crepezzi 8b7ac341e7 FileDocumentStore fix
Closes #20
2012-01-24 00:01:38 -05:00
John Crepezzi f37d1ad401 Clean up some code and move document stores into subfolder 2012-01-21 15:19:55 -05:00
John Crepezzi 483fce891d Added memcached support 2012-01-17 14:43:33 -05:00
John Crepezzi 6e4c087319 Remove hashlib dependency and switch to mocha for testing 2012-01-13 11:17:15 -05:00
John Crepezzi cc65e98940 Added support for phonetic key naming
Closes #7
2012-01-07 11:35:11 -05:00
Joe Friedl 8c2add94a2 Cancellation should only last as long as the handler 2011-12-19 14:20:22 -06:00
Joe Friedl 6145a938e3 Error messages in the UI 2011-12-19 11:44:12 -06:00
Joe Friedl 87c935ac47 Fixed error in error message. 2011-12-18 18:51:23 -06:00
John Crepezzi 44f7ab3f33 Added the ability to retrieve raw documents
Closes #10
2011-12-16 07:57:49 -05:00
John Crepezzi 565830214b Start in on the tests 2011-11-28 16:46:59 -05:00