session-memory-store
Advanced tools
Sorry, the diff of this file is not supported yet
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="JavaScriptLibraryMappings"> | ||
| <file url="file://$PROJECT_DIR$" libraries="{session-memory-store node_modules}" /> | ||
| </component> | ||
| </project> |
| <component name="libraryTable"> | ||
| <library name="session-memory-store node_modules" type="javaScript"> | ||
| <properties> | ||
| <option name="frameworkName" value="node_modules" /> | ||
| <sourceFilesUrls> | ||
| <item url="file://$PROJECT_DIR$/node_modules" /> | ||
| </sourceFilesUrls> | ||
| </properties> | ||
| <CLASSES> | ||
| <root url="file://$PROJECT_DIR$/node_modules" /> | ||
| </CLASSES> | ||
| <SOURCES /> | ||
| </library> | ||
| </component> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | ||
| <OptionsSetting value="true" id="Add" /> | ||
| <OptionsSetting value="true" id="Remove" /> | ||
| <OptionsSetting value="true" id="Checkout" /> | ||
| <OptionsSetting value="true" id="Update" /> | ||
| <OptionsSetting value="true" id="Status" /> | ||
| <OptionsSetting value="true" id="Edit" /> | ||
| <ConfirmationsSetting value="0" id="Add" /> | ||
| <ConfirmationsSetting value="0" id="Remove" /> | ||
| </component> | ||
| <component name="ProjectRootManager" version="2" /> | ||
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ProjectModuleManager"> | ||
| <modules> | ||
| <module fileurl="file://$PROJECT_DIR$/.idea/session-memory-store.iml" filepath="$PROJECT_DIR$/.idea/session-memory-store.iml" /> | ||
| </modules> | ||
| </component> | ||
| </project> |
Sorry, the diff of this file is not supported yet
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="VcsDirectoryMappings"> | ||
| <mapping directory="$PROJECT_DIR$" vcs="Git" /> | ||
| </component> | ||
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ChangeListManager"> | ||
| <list default="true" id="46961191-3081-46ac-986d-7849f58839b2" name="Default" comment=""> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/.name" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.npmignore" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/index.js" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/jsLibraryMappings.xml" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/memoryStore.js" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/package.json" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/session-memory-store.iml" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/libraries/session_memory_store_node_modules.xml" /> | ||
| <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" /> | ||
| </list> | ||
| <ignored path="session-memory-store.iws" /> | ||
| <ignored path=".idea/workspace.xml" /> | ||
| <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | ||
| <option name="TRACKING_ENABLED" value="true" /> | ||
| <option name="SHOW_DIALOG" value="false" /> | ||
| <option name="HIGHLIGHT_CONFLICTS" value="true" /> | ||
| <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | ||
| <option name="LAST_RESOLUTION" value="IGNORE" /> | ||
| </component> | ||
| <component name="ChangesViewManager" flattened_view="true" show_ignored="false" /> | ||
| <component name="CreatePatchCommitExecutor"> | ||
| <option name="PATCH_PATH" value="" /> | ||
| </component> | ||
| <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" /> | ||
| <component name="FavoritesManager"> | ||
| <favorites_list name="session-memory-store" /> | ||
| </component> | ||
| <component name="FileEditorManager"> | ||
| <splitter split-orientation="horizontal" split-proportion="0.5"> | ||
| <split-first> | ||
| <leaf> | ||
| <file leaf-file-name="package.json" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-12.5"> | ||
| <caret line="20" column="17" selection-start-line="20" selection-start-column="17" selection-end-line="20" selection-end-column="17" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="README.md" pinned="false" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.5107973"> | ||
| <caret line="40" column="101" selection-start-line="40" selection-start-column="101" selection-end-line="40" selection-end-column="101" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="app.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/test/app.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="37" column="4" selection-start-line="6" selection-start-column="0" selection-end-line="37" selection-end-column="4" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/.gitignore"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-0.6"> | ||
| <caret line="1" column="4" selection-start-line="1" selection-start-column="4" selection-end-line="1" selection-end-column="4" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name=".npmignore" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/.npmignore"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-2.4"> | ||
| <caret line="4" column="4" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="LICENSE" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/LICENSE"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="test.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/test/test.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="10" column="43" selection-start-line="10" selection-start-column="43" selection-end-line="10" selection-end-column="43" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="memoryStore.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/lib/memoryStore.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="26" column="77" selection-start-line="26" selection-start-column="49" selection-end-line="26" selection-end-column="77" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="index.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| </leaf> | ||
| </split-first> | ||
| <split-second> | ||
| <leaf> | ||
| <file leaf-file-name="index.jade" pinned="false" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/test/index.jade"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.12458472"> | ||
| <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| </leaf> | ||
| </split-second> | ||
| </splitter> | ||
| </component> | ||
| <component name="Git.Settings"> | ||
| <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> | ||
| </component> | ||
| <component name="IdeDocumentHistory"> | ||
| <option name="CHANGED_PATHS"> | ||
| <list> | ||
| <option value="$PROJECT_DIR$/test/test.js" /> | ||
| <option value="$PROJECT_DIR$/test/index.jade" /> | ||
| <option value="$PROJECT_DIR$/test/app.js" /> | ||
| <option value="$PROJECT_DIR$/.npmignore" /> | ||
| <option value="$PROJECT_DIR$/lib/memoryStore.js" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| <option value="$PROJECT_DIR$/README.md" /> | ||
| </list> | ||
| </option> | ||
| </component> | ||
| <component name="JsBuildToolGruntFileManager" detection-done="true" /> | ||
| <component name="JsGulpfileManager"> | ||
| <detection-done>true</detection-done> | ||
| </component> | ||
| <component name="NamedScopeManager"> | ||
| <order /> | ||
| </component> | ||
| <component name="ProjectFrameBounds"> | ||
| <option name="y" value="23" /> | ||
| <option name="width" value="2560" /> | ||
| <option name="height" value="1349" /> | ||
| </component> | ||
| <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | ||
| <OptionsSetting value="true" id="Add" /> | ||
| <OptionsSetting value="true" id="Remove" /> | ||
| <OptionsSetting value="true" id="Checkout" /> | ||
| <OptionsSetting value="true" id="Update" /> | ||
| <OptionsSetting value="true" id="Status" /> | ||
| <OptionsSetting value="true" id="Edit" /> | ||
| <ConfirmationsSetting value="0" id="Add" /> | ||
| <ConfirmationsSetting value="0" id="Remove" /> | ||
| </component> | ||
| <component name="ProjectView"> | ||
| <navigator currentView="ProjectPane" proportions="" version="1"> | ||
| <flattenPackages /> | ||
| <showMembers /> | ||
| <showModules /> | ||
| <showLibraryContents /> | ||
| <hideEmptyPackages /> | ||
| <abbreviatePackageNames /> | ||
| <autoscrollToSource /> | ||
| <autoscrollFromSource /> | ||
| <sortByType /> | ||
| </navigator> | ||
| <panes> | ||
| <pane id="Scope" /> | ||
| <pane id="ProjectPane"> | ||
| <subPane> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="test" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="node_modules" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| <PATH> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="session-memory-store" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| <PATH_ELEMENT> | ||
| <option name="myItemId" value="lib" /> | ||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | ||
| </PATH_ELEMENT> | ||
| </PATH> | ||
| </subPane> | ||
| </pane> | ||
| <pane id="Scratches" /> | ||
| </panes> | ||
| </component> | ||
| <component name="PropertiesComponent"> | ||
| <property name="WebServerToolWindowFactoryState" value="false" /> | ||
| <property name="HbShouldOpenHtmlAsHb" value="" /> | ||
| </component> | ||
| <component name="RunManager"> | ||
| <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JSTestDriver:ConfigurationType" factoryName="JsTestDriver"> | ||
| <setting name="configLocationType" value="CONFIG_FILE" /> | ||
| <setting name="settingsFile" value="" /> | ||
| <setting name="serverType" value="INTERNAL" /> | ||
| <setting name="preferredDebugBrowser" value="Chrome" /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file=""> | ||
| <envs /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir=""> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="cucumber.js" factoryName="Cucumber.js"> | ||
| <option name="cucumberJsArguments" value="" /> | ||
| <option name="executablePath" /> | ||
| <option name="filePath" /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> | ||
| <method /> | ||
| </configuration> | ||
| </component> | ||
| <component name="ShelveChangesManager" show_recycled="false" /> | ||
| <component name="TaskManager"> | ||
| <task active="true" id="Default" summary="Default task"> | ||
| <changelist id="46961191-3081-46ac-986d-7849f58839b2" name="Default" comment="" /> | ||
| <created>1456208730999</created> | ||
| <option name="number" value="Default" /> | ||
| <updated>1456208730999</updated> | ||
| </task> | ||
| <servers /> | ||
| </component> | ||
| <component name="ToolWindowManager"> | ||
| <frame x="0" y="23" width="2560" height="1349" extended-state="6" /> | ||
| <editor active="true" /> | ||
| <layout> | ||
| <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24970461" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
| </layout> | ||
| </component> | ||
| <component name="VcsContentAnnotationSettings"> | ||
| <option name="myLimit" value="2678400000" /> | ||
| </component> | ||
| <component name="XDebuggerManager"> | ||
| <breakpoint-manager /> | ||
| <watches-manager /> | ||
| </component> | ||
| <component name="editorHistoryManager"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/LICENSE"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/.npmignore"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-2.4"> | ||
| <caret line="4" column="4" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/.gitignore"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-0.6"> | ||
| <caret line="1" column="4" selection-start-line="1" selection-start-column="4" selection-end-line="1" selection-end-column="4" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/test/test.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="10" column="43" selection-start-line="10" selection-start-column="43" selection-end-line="10" selection-end-column="43" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-12.5"> | ||
| <caret line="20" column="17" selection-start-line="20" selection-start-column="17" selection-end-line="20" selection-end-column="17" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/test/index.jade"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.12458472"> | ||
| <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/test/app.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="37" column="4" selection-start-line="6" selection-start-column="0" selection-end-line="37" selection-end-column="4" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/lib/memoryStore.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="26" column="77" selection-start-line="26" selection-start-column="49" selection-end-line="26" selection-end-column="77" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.5107973"> | ||
| <caret line="40" column="101" selection-start-line="40" selection-start-column="101" selection-end-line="40" selection-end-column="101" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </component> | ||
| </project> |
Sorry, the diff of this file is not supported yet
+21
| The MIT License (MIT) | ||
| Copyright (c) 2016 TencentRdmCi | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
+41
| # session-memory-store | ||
| A session store implementation for Express using [node-cache](https://www.npmjs.com/package/node-cache). | ||
| Because the default store for `express-session` -- memory-cache will lead to a memory leak due to it havn't a suitable way to make them expire. | ||
| And this is why I make this project, for those who want to use in-memory session, also want them to auto expire. | ||
| BTW, as the session is still storing in memory, you can't share the session with the others, process or other service. | ||
| ## USAGE | ||
| var express = require('express'), | ||
| session = require('express-session'), | ||
| cookieParser = require('cookie-parser'); | ||
| // for express 4.0+ | ||
| var MemoryStore = require('session-memory-store')(session); | ||
| // for express 4.0- | ||
| // var MemoryStore = require('session-memory-store')(express); | ||
| var app = module.exports = express(); | ||
| app.use(cookieParser()); | ||
| app.use(session({ | ||
| name: 'JSESSION', | ||
| secret: 'my secret', | ||
| store: new MemoryStore(options) | ||
| })); | ||
| ## OPTIONS | ||
| #### options.expires | ||
| (Number) Defined how long each session will be expired. In second. Default: half a day, 60 * 60 * 12 | ||
| #### options.checkperiod | ||
| (Number) Defined how long MemoryStore will check for expired. In second. Default: 10 minutes, 10 * 60 |
+51
-9
| 'use strict'; | ||
| var util = require('util'); | ||
| var _ = require('lodash'); | ||
| const util = require('util'), | ||
| _ = require('lodash'), | ||
| NodeCache = require('node-cache'); | ||
| var nodeCache = require('node-cache'); | ||
| // One day in second | ||
| var ONE_DAY = 60 * 60 * 24; | ||
| const ONE_DAY = 60 * 60 * 24; | ||
| var DEFAULT_OPTION = { | ||
| const DEFAULT_OPTION = { | ||
| expires: ONE_DAY / 2, | ||
@@ -16,5 +15,7 @@ checkperiod: 10 * 60, | ||
| const DEFAULT_FUNC = function () {}; | ||
| module.exports = function (express) { | ||
| var Store = express.session.Store || connect.Store; | ||
| var Store = express.Store || express.session.Store; | ||
@@ -31,2 +32,4 @@ /** | ||
| function MemoryStore(options) { | ||
| if (!(this instanceof MemoryStore)) return new MemoryStore(options); | ||
| Store.call(this, options); | ||
@@ -39,3 +42,3 @@ | ||
| utils.inherits(MemoryStore, Store); | ||
| util.inherits(MemoryStore, Store); | ||
@@ -48,2 +51,4 @@ /** | ||
| MemoryStore.prototype.all = function (callback) { | ||
| callback = _checkCBisFunc(callback); | ||
| var allKeys = this.store.keys(); | ||
@@ -76,2 +81,4 @@ | ||
| MemoryStore.prototype.destroy = function (sessionId, callback) { | ||
| callback = _checkCBisFunc(callback, true); | ||
| this.store.del(sessionId, function (err, count) { | ||
@@ -89,2 +96,4 @@ callback(err); | ||
| MemoryStore.prototype.clear = function (callback) { | ||
| callback = _checkCBisFunc(callback, true); | ||
| this.store.flushAll(); | ||
@@ -99,2 +108,4 @@ return callback(null); | ||
| MemoryStore.prototype.length = function (callback) { | ||
| callback = _checkCBisFunc(callback); | ||
| callback(null, this.store.keys.length); | ||
@@ -110,2 +121,4 @@ }; | ||
| MemoryStore.prototype.get = function (sessionId, callback) { | ||
| callback = _checkCBisFunc(callback, true); | ||
| this.store.get(sessionId, function (err, session) { | ||
@@ -121,2 +134,6 @@ if (err) { | ||
| MemoryStore.prototype.set = function (sessionId, session, callback) { | ||
| callback = _checkCBisFunc(callback, true); | ||
| callback = typeof callback === 'function' ? callback : function () {}; | ||
| this.store.set(sessionId, session, function (err, success) { | ||
@@ -143,2 +160,4 @@ if (err) { | ||
| MemoryStore.prototype.touch = function (sessionId, session, callback) { | ||
| callback = _checkCBisFunc(callback, true); | ||
| this.store.del(sessionId); | ||
@@ -149,3 +168,26 @@ | ||
| return MemoryStore; | ||
| }; | ||
| } | ||
| /** | ||
| * Check if callback is a function, if this can be ignored, return an empty function. | ||
| * | ||
| * @param {Function} callback | ||
| * @param {Boolean} canThisIgnore | ||
| * @returns {*} | ||
| * @private | ||
| */ | ||
| function _checkCBisFunc(callback, canThisIgnore) { | ||
| if (typeof callback !== 'function') { | ||
| if (canThisIgnore) { | ||
| return DEFAULT_FUNC; | ||
| } | ||
| else { | ||
| throw new Error('Callback is not a function!'); | ||
| } | ||
| } | ||
| else { | ||
| return callback; | ||
| } | ||
| } | ||
+10
-1
| { | ||
| "name": "session-memory-store", | ||
| "version": "0.1.0", | ||
| "version": "0.2.0", | ||
| "description": "Memory store for session that can auto check expired.", | ||
@@ -14,2 +14,11 @@ "main": "index.js", | ||
| "devDependencies": { | ||
| "body-parser": "^1.0.2", | ||
| "cookie-parser": "^1.4.1", | ||
| "cookie-session": "^1.2.0", | ||
| "error-handler": "^0.1.4", | ||
| "express": "~4.1.1", | ||
| "express-session": "^1.13.0", | ||
| "jade": "~0.31.2", | ||
| "method-override": "^1.0.0", | ||
| "morgan": "^1.0.0" | ||
| }, | ||
@@ -16,0 +25,0 @@ "scripts": { |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
32279
788.01%14
366.67%147
28.95%0
-100%41
Infinity%9
Infinity%