Bereshit / Genesis 40:23 · Sod
וְלֹא־זָכַר שַׂר־הַמַּשְׁקִים אֶת־יוֹסֵף וַיִּשְׁכָּחֵהוּ׃
Yet the chief cupbearer did not remember Yosef, and he forgot him.
Sod סוֹד
Memory is cleaving
This verse is read on the Shabbat of Chanukah. The Chasidic masters see in Yosef's forgotten name a force set against him, and the same force in the Greeks, who wanted "to make Israel forget the Torah".
Agra DeKala: the cupbearer forgot even Yosef's name. This was from God: the name was hidden for twenty-two years, as long as Yaakov had not served his father. Sefat Emet: memory is the cleaving of the soul. The Greeks wanted to make the Torah mere wisdom, like other sciences, and so take memory from Israel. Of this we say on Chanukah "to make them forget Your Torah".
How Agra DeKala and Sefat Emet explain it
Agra DeKala
"And the chief cupbearer did not remember Yosef and forgot him" (Bereshit / Genesis 40:23). The Sages expounded (Bereshit Rabbah 88:7): "and he forgot him" — afterwards. It seems the sense is: he did not remember him, and Yosef did not come to his mind, until the name of Yosef was uprooted from his heart entirely. So that even later, when he had to mention him to Pharaoh about the dream, he did not say his name, for he did not remember him by name, only the event itself. The Torah tells us by this how completely the name of Yosef was forgotten. For had the name still been remembered when Yosef ruled Egypt, his name would have spread in the world because of the dreams. And Yaakov too heard in the land of Canaan how he interpreted the dreams, as explained in the book HaYashar. And had the name still been known, many would still call him Yosef, and it would have become known to Yaakov and his sons, especially when they came to Egypt to buy grain. But from God there was a cause that this not be revealed until twenty-two years had passed: so Yaakov received his punishment for not serving his father twenty-two years. Therefore the name was entirely forgotten, and only Pharaoh named him Tzafnat-Paneach (Bereshit / Genesis 41:45), and by this name alone they called him, as said above.
Sefat Emet
On what is said "to make them forget Your Torah". This is understood by what the holy Zohar says at the end of parashat Vayeshev on the verse "and the chief cupbearer did not remember Yosef and forgot him": these words are superfluous. And the explanation: because Yosef said "remember me", he flawed even Yosef's own remembrance and fell to the level of forgetting, see there. So too here: the Greeks meddled with their language, interpreting the Torah in Greek as if they had a share in the Torah, and by this they took away memory from the children of Israel, for memory is the cleaving of the soul. But in truth the Torah is not mere wisdom like the other sciences, but Godliness itself. And the Greeks, may their name be blotted out, wanted to make it mere wisdom. This is what is called "to make them forget Your Torah", precisely so. "And to turn them away from the statutes of Your will" — this is the study of Torah for its own sake, as is His will, and not for the sake of mere wisdom, as said.
Takeaway
The cupbearer tells Pharaoh of "a Hebrew youth, a servant of the chief of the executioners" (41:12), but does not say his name. Agra DeKala sees in this the full forgetting of the name.
Twenty-two years: Yaakov spent twenty years with Lavan and two years on the road, away from his father. Just so long he did not see Yosef.
"To make them forget Your Torah and to turn them away from the statutes of Your will" (לְהַשְׁכִּיחָם תּוֹרָתֶךָ) are words of the prayer "Al HaNissim" ("For the miracles"), added on Chanukah.